Button does not work on Enter

  • Thread starter Thread starter Vik
  • Start date Start date
V

Vik

On some ASP.NET forms, a default button (the first in HTML) responds to the
Enter key and on some forms it doesn't though it is highlighted. What may be
a reason?

Thank you.
 
On some ASP.NET forms, a default button (the first in HTML) responds to
the
Enter key and on some forms it doesn't though it is highlighted. What may be
a reason?

Vik, check out:

Using the enter key to submit a form
http://www.allasp.net/enterkey.aspx

It has a discussion on this. Also, there's a free control at
MetaBuilders.com that you can use:

DefaultButtons Control
http://www.metabuilders.com/tools/DefaultButtons.aspx

Happy Programming!

--

Scott Mitchell
(e-mail address removed)
http://www.4GuysFromRolla.com
http://www.ASPFAQs.com
http://www.ASPMessageboard.com

* When you think ASP, think 4GuysFromRolla.com!
 
Back
Top