I have trouble checking page validation in javascript. I have a user control in the aspx page, for example control1, control2, and control3 I created a verification group for each control, then I tried to use the code given below, the problem is that it is always a wrong Returns the value that page verification is satisfied. What happened with the code below? The way I used Ajax in my application.
if (typeof (Page_Validators)! = "Undefined") {if (typeof (Page_ClientValidate) == 'function') {Page_ClientValidate (); } If (page_isleveled) {// some warning ('page is valid!'); } Else {// It will always happen here where it was successfully warned ('page is not valid!'); }}
Comments
Post a Comment