Textbox field do postback on pressing "Enter"
Posted on 2006-03-29
This is probably more an annoyance that a problem, but is there any way to disable an ASP.NET textbox control from doing a postback when punching the Enter key while the textbox is in focus.
For instance, on a login page, i type the username & password in the respective fields, but unless i actually click the submit button, the page just reloads.
I remember that in ASP 3.0 punchine the Enter key would automatically activate the first button control in the form.