but my suggesion is..try<br /> Use a Validation Group and check this group on server side like that..
protected void btnLogin_Click(object sender, EventArgs e) { Page.Validate("VGroup");//VGroup is the Validation group if (!Page.IsValid) { return; } else { //do your Work... } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)