ASP.NET FAQS | |
Let us assume we have a Page that collects user information like name, age, date of birth, gender with a submit and reset buttons. When I click the submit button the information filled on the form should be validated and saved to the database. If I click the reset button then all the controls on the webform should default to their initial values without validation happening.So you have to set the CausesValidation property of the reset button to false for the validation to be bypassed. Other wise you will not be able to post back the page to the server. | |
ASP.NET FAQS |
Give an example of real time scenario where you might use CausesValidation property of an ASP.NET button control?
Posted by
Ramu