Click here to Skip to main content
15,887,135 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more: , +
Hi everyone!!

I have a problem. I want to ignore or disable the validation of a form when I click in a button of the master page.

I have in the master page a button in the header, to logout from the web and I have a few of forms with the master page. I have in these forms a validation group in order to prevent that the user insert bad information.

When I click the button of the master page, this validation works and don´t let me logout from the web.

I don´t know if anything can help me.

Thank you very much!!
Posted

1 solution

Why don't you just set on the button that should not do the validation following

ASP.NET
<asp:Button CausesValidation="False" />


Cheers
 
Share this answer
 
v2
Comments
MiguelSanchezCuarental 29-Feb-12 10:48am    
Thank you very much.

It works perfectly.
Mario Majčica 29-Feb-12 10:50am    
You're welcome!

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900