기본 버튼 설정이있는 asp.net 패널이 있지만 ENTER 버튼을 눌렀을 때 버튼이 트리거되지 않습니다. 그래서이 질문을 검색했지만 작동하는 응답을 찾을 수 없습니다.기본 버튼이 asp.net 패널에서 작동하지 않습니다.
사용자가 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>
이 대답 http://stackoverflow.com/questions/2155048/onclientclick-and-onclick-is-not-working-at-the-same-time –