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?
Loading
Satish BhatPosted Oct 12, 2011, 1:45 AM
e.g.
Prabhu RajaPosted Oct 12, 2011, 1:17 AM
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.