validation conrtol give's problem while clicked on button
i am developing a site in asp.net as front-end In my Form, i have a 3 text-box with validation control on it eg: requiredFieldValidator with joinnow button. and search button with 2 textbox开发者_如何学C with no validation control on it
when i click on search button it is asking me to fill the three text box for validation and it is not redirected to other page
i need that when i click on search button my form should redirect
You need to set the ValidationGroup
properties on your textbox that has the validation and the joinnow button to the same thing. When you click the button it will validate controls in its group, and thus not validate from the search button (which is in a different validation group implicitly)
solution for it is set the property of the search button as below CausesValidation="False"
精彩评论