Some times we avoid ASP.Net Validations controls So, JavaScript is preferable for avoiding Post-backs.
I made this JS.
Now, on your SubmitButton click Event you can add
Button1.Attribute.Add("onclick", "validate()");
//OR
// simply you can add on your HTML Mark of Button1
OnClientClick="validate()"
Good Luck`

Monday, August 06, 2012
Mahad Bin Mukhtar
Posted in:
0 comments:
Post a Comment