Monday, 6 August 2012

JS : Minimum & Maximum Validation from ASP TextBox

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
In your Page_Load Event..
Button1.Attribute.Add("onclick", "validate()");
//OR
// simply you can add on your HTML Mark of Button1
OnClientClick="validate()"
Good Luck`

0 comments:

Post a Comment

Twitter Delicious Facebook Digg Stumbleupon Favorites More