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

Recommended Answers

All 2 Replies

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.

thanks dear its solved ! thanks

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.