Wednesday, September 28, 2011

To validate asp.net validators


ClientSide:
var isValid = false;
isValid = Page_ClientValidate("validationgroupname");

Serverside:
  Page.Validate("group1");
        Page.Validate("group2");
        if (Page.IsValid)
        {
// Page is valid  so proceed..!!
        }

No comments:

Post a Comment