Validation and Javascript
If the user has disabled the JavaScript in their web browser the page will post-back to the server without performing client side validating and the code will execute related the button’s click event (i.e.: Entry to the DB it will create fake or Null). But you can stop this by validate this user input at server side. For that you have to check following property Page.IsValid. It will return true if the validation control does not have any error or it will return false if validation control contain error.
It is easy to forget that to check Page.IsValid property because you always work with the web browser which has enabled JavaScript.
Refer:
http://stackoverflow.com/questions/5534336/how-to-handle-validation-when-javascript-is-disabled-in-asp-net
http://forums.asp.net/t/1666400.aspx/1
No comments:
Post a Comment
Thank You for Your Comments. We will get back to you soon.