<form id="form1" runat="server" defaultbutton="btnDefaultButton" >
I used this technique in order to disable this behaviour by using a dummy button at the end of the screen and pointing the defaultbutton to this button. The dummy button must be invisible and do nothing, so here's the code
At the top:
<form id="form1" runat="server" defaultbutton="btnDisableEnter" >
At the bottom:
<asp:Button ID="btnDisableEnter" runat="server" Text="" OnClientClick="return false;" style="display:none;"/>
It seems to do the job quite well till now. Let me know if you have a better solution or if you found it useful
No comments:
Post a Comment