Bu veya şu iki koşuldan şu şekilde bahsediyorum
if (Type == 2 && PageCount == 0) || (Type == 2 && PageCount == '')
PageCount= document.getElementById('<%=hfPageCount.ClientID %>').value;
}
bunları if deyiminin ana parantezi içine eklemeniz yeterlidir
if ((Type == 2 && PageCount == 0) || (Type == 2 && PageCount == '')) {
PageCount= document.getElementById('<%=hfPageCount.ClientID %>').value;
}
Mantıksal olarak bu da daha iyi bir şekilde yeniden yazılabilir! Bu tamamen aynı anlama geliyor
if (Type == 2 && (PageCount == 0 || PageCount == '')) {