Monday, April 20, 2009

RequiredFieldValidator and cancel button, Go back button asp.net 2.0 C#

RequiredFieldValidator and cancel button, Go back button asp.net 2.0 C#
 
to put cancel button or response.redirect you have to put like following, so that on click it will not validate form.
 
CausesValidation="False"
<asp:Button id="Button2" runat="server" Text="Cancel"
CausesValidation="False"></asp:Button></P>

 


Rediscover Hotmail®: Get e-mail storage that grows with you. Check it out.

0 comments: