josephj1989
josephj1989

Reputation: 9709

asp.net response.redirect avoid validation

I have an ASP.NET form which has many requiredfield validators. Now under some consditions , I have to choose response.redirect to go to another form (this happens when a menu item is chosen under some complex conditions). In this case the navigation fails because of Requiredfield validators on the current form.

Any Idea how I can solve this

thanks

Upvotes: 1

Views: 799

Answers (1)

to StackOverflow
to StackOverflow

Reputation: 124696

Have you tried setting the CausesValidation property to false on the relevant control?
Or alternatively, you could do the redirection client-side.

Upvotes: 2

Related Questions