ASP.NET form with single textbox does not post as expected on ENTER in Internet Explorer
If you have ever created an ASP.NET page with only a single textbox, you probably know that with Internet Explorer a server-side button click event will not fire for the submit button when you press Enter. As far as I know it is caused by IE not sending the button name in the POST when Enter is pressed instead of clicking the button (Firefox doesn't have this quirk). I've seen people use JavaScript and server-side workarounds for this problem in the past, but when it cropped up on one of our projects the other day I didn't want the developer involved to be distracted with having to look up one of the workarounds and implementing it. So as an ultra low impact workaround I simply had him add another textbox to appease IE:
<input type="text" readonly style="width: 0px; visibility: hidden " />
Works like a charm, no mess, and the user doesn't know the difference.