Tuesday, August 23, 2011

How to make a postback withoud validation for a button in ASP.NET webform?


Set CauseValidation to false.
<asp:Button runat="server" ID="button1" Text="Go" OnClick="Button1_Click"  CausesValidation="false"/>

No comments:

Post a Comment