ASP.NET enter key and form submit with no javascript
问题 I have a form that I want to submit when the user presses the enter key. It works fine in Firefox, but not in IE. It is basically the same issue as this, except that I am not allowed to use any JavaScript: Enter button does not submit form (IE ONLY) ASP.NET Unfortunately it looks like ASP.NET uses JavaScript to process the button postback. Is there a way around this issue that doesn't rely on JavaScript? 回答1: The fix for this is what was listed in the bottom of the page of your linked post.