我有一个带有默认按钮设置的asp.net面板,但是当按下ENTER按钮时按钮永远不会触发.我搜索了SO这个问题,但找不到任何有效的回复.
当用户点击ENTER时如何让btnRegister单击?
<asp:Panel runat="server" ID="pnlCustomer" DefaultButton="btnRegister"> <table width="500px" border="0" cellpadding="0" cellspacing="0"> <tr> <td align="right"> <asp:Button ID="btnBackToProfile" Text="Back To Profile" runat="server" Enabled="false" onclick="btnBackToProfile_Click" /> </td> <td align="right"> <asp:Button ID="btnClearnForm" Text="Clear Form" runat="server" OnClientClick="ClearForm1()" /> </td> <td align="right"> <asp:Button id="btnRegister" runat="server" onclientclick="document.getElementById('AlertTime').value = GetSeconds();" Text="Continue" OnClick="btnRegister_Click" /> </td> </tr> </table> </asp:Panel>