hi guys,
in asp.net page i have designed a registration page few textbox are in that page i have set field validators on them but problem is that there are two buttons one is for register and the other is to go back to main page when i am clicking submit button with value then validators are stoping page to reload thats ok but if without register any thing when i am clicking back button validators even highlights those fields to fill and cant go back to main page what i do for this??? and i am doing this in asp.net with vb.net

8 Years
Discussion Span
Last Post by saj_amo

Set CausesValidation property of button. If CausesValidation is False: ASP.NET will ignore the validation controls, the page will be posted back, and your event-handling code will run normally.

This question has already been answered. Start a new discussion instead.
Have something to contribute to this discussion? Please be thoughtful, detailed and courteous, and be sure to adhere to our posting rules.