20090928

ASP.NET form submit on enter.

One of the more frustrating things, form submit that happens on enter key press anywhere in the web page. It was messing up some of my AJAX posts.

Solution, add a default button to the form (up the page chain to the initial master), add that button.

Like So:
<form id="form1" runat="server" defaultbutton="btnDefautNothing"/>

<asp:button id="btnDefautNothing" runat="server" visible="true" text="Nothing" style="display: none;" onclientclick="return false;" />

Should save some frustration.

Initial Post - Introduction

This is my initial post, if you're reading this, I'm a little surprised, this is mostly built as a catalog of coding issues I've had. I've realized that I keep seeing the same problems over and over. Therefor I've decided to keep this catalog of them, so I can find solutions and have a running tally of conquests.