In order to avoid ENTER key in your asp:TextBox you’ve to add onkeydown event and control it, like this:
<asp:TextBox ID="myTextBox" runat="server"
onkeydown="return (event.keyCode != 13);"></asp:TextBox>
Your email address will not be published. Required fields are marked *
Save my name, email, and website in this browser for the next time I comment.