Oct 30, 2003 #1 digiduck Programmer Apr 4, 2003 95 US is there a way to make it so that when the user has the focus on an <asp:textbox> object that when they hit the enter key it won't do anything? Thanks Gone looking for myself. Should I arrive before I'm back, keep me here.
is there a way to make it so that when the user has the focus on an <asp:textbox> object that when they hit the enter key it won't do anything? Thanks Gone looking for myself. Should I arrive before I'm back, keep me here.
Nov 3, 2003 #2 cbokowski Programmer Oct 3, 2001 413 US You could output a little javascript to handle it. <script type="text/javascript"><!-- function handleEnter() { return !(window.event && window.event.keyCode == 13); } //--></script> with an onKeypress on your textbox like so... onkeypress="return handleEnter();" Upvote 0 Downvote
You could output a little javascript to handle it. <script type="text/javascript"><!-- function handleEnter() { return !(window.event && window.event.keyCode == 13); } //--></script> with an onKeypress on your textbox like so... onkeypress="return handleEnter();"