In your ASP.Net page, let’s say you have multiple textboxes, etc, for which you are using validation controls. Then, you also have a button, that when it is clicked, will fire those validation controls.
That’s all well and good, but let’s say you have another button on this page which does something else entirely and you don’t want anything to do with the validation controls, but when you click it, the validation controls fire.
The answer is simple. For the button which doesn’t require any validators to be used, change the ‘CausesValidation’ property to ‘False’.
All Things DotNet Discussed – Winforms/ASP.Net/SharePoint/WPF
Leave a reply
You must be logged in to post a comment.