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.
1 comment:
Hi,
Thanks a lot . it has solved my problem. i have done fllowing.. i was having 2 buttons in my asp.net page .aspx
on back button code write CausesValidation="false"
This worked for me.
Mayur
Post a Comment