ASP.NET panel DefaultButton event fires only once?
Posted
by Ahmed
on Stack Overflow
See other posts from Stack Overflow
or by Ahmed
Published on 2009-07-27T06:57:20Z
Indexed on
2010/04/07
14:03 UTC
Read the original article
Hit count: 582
For a panel with one textbox and one button which is its default button, the DefaultButton event fires only once as editing textbox details again and pressing enter, event doesn't fire.
<asp:Panel runat="server" ID="pnlNewFolderDetails" DefaultButton="btnAddFolder">
<asp:Label runat="server" ID="lblFolderHeader" Text="New Folder Name" CssClass="label" />
<asp:TextBox runat="server" ID="txtFolderName" ToolTip="Folder Name" />
<asp:Button runat="server" ID="btnAddFolder" OnClick="btnAddFolder_Click" Text="Add" />
Any suggestions?
© Stack Overflow or respective owner