If you are using a cancel button on a .NET Web Form and it's causing your page to trigger the validation you can set the CausesValidation property to false. It's set to true by default. Often you don't want to user to have to pass your validation before canceling a form - they might have decided not to enter the new record or not know the required data.
<asp:Button ID="CancelButton" CommandName="Cancel" Text="Cancel" Width="50" CausesValidation="False" runat="Server" />
Remember Me
Powered by: newtelligence dasBlog 1.8.5223.2
Disclaimer The opinions expressed herein are my own personal opinions and do not represent my employer's view in anyway.
© Copyright 2010, Zenmonkeys
E-mail