Friday, July 11, 2014

Disable default submit of button on enter key press in asp.net

<asp:Button ID="btnchangetoguest" runat="server" Style="display: none;" OnClientClick="changeToGuest"
                        Text="Guest" OnClick="btnchangetoguest_Click" CausesValidation="false"  UseSubmitBehavior="False" />


Use - UseSubmitBehavior="False"

No comments:

Post a Comment