I have used a login control in my master page and i have created a registration page which inherits that master page.My Problem is that when i clicked on submit button for checking validation on registration page ,it also shows error message which was given by me to check validation for login control.
Can anyone tell me, how can i stop validation checking on login control when any user is registring themselves using registration page?
How can i stop validation checking on login control in ASP.NET
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.

Prabhu RajaRank #861 · 2.6K reputationPosted Oct 11, 2011, 9:17 PM EDT
my suggestion is, if you don't want validate your controls then, Remove All RequiredFieldValidators from Code. And if You used the following Code in Submit button event handler, then remove this one also.
if (!Page.IsValid)
return;
And You Disable Control Validation by Setting CausesValidation Property to False.
Satish BhatRank #2,496 · 563 reputationPosted Oct 11, 2011, 9:45 PM EDT
e.g.