Thursday, November 26, 2009

How to handle Enter Key on ASP.NET web page.

One of the most annoying things in developing web pages is handling the "Enter key" for form submission. Enter key has been the favourite way users like to submit forms. Though we provide Buttons to click on, the easiest and intuitive way is that, I can enter some text, make some changes and then hit "Enter" to accomplish my submission.

The defaultbutton property can be specified at the Form level in the form tag as well as at panel level in the definition tag. The form level setting is overridden when specified at the panel level, for those controls that are inside the panel.

No comments:

About Me

I have an experience of 4+ Years in Microsoft Technology including VB.NET, C#, ASP.NET, SQL SERVER, AJAX, WCF, LINQ and HTML, JavaScript, CSS, Oracle.
I love to work in R&D sphere. My favorite programming languages are C and c#. I also love to help others.
Occupation: Sr. Software Developer
Company: Secure Meters Ltd.
Location: India