How do I associate the Enter key with a button on an aspx page?

Posted by Xaisoft on Stack Overflow See other posts from Stack Overflow or by Xaisoft
Published on 2008-12-08T19:52:27Z Indexed on 2010/04/14 8:03 UTC
Read the original article Hit count: 345

Filed under:
|

I have an asp.net ascx control file and I have put the control on an aspx page. The aspx page has a button in which when I press enter on the keyboard, I want it to fire the event handler for the button. Is there a way to set this?

I am using a master page with a button already on it, so now when I press the enter key, the event handler for that button fires.

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about ascx