Sometimes we have several user controls on the page. Like the login control and the Search control. Now if you want the ability that user can search without loggin in but the login has required field validators. So if you try to search it will give you message that first you need to fill out the login textbox and password textbox since they both are required.
In that case you can use the CausesValidation property property of the button for which you dont want the validation to occur.
By default the causes validation property is set to true.
No comments:
Post a Comment