How to use the enter key to activate a button?

ryodoan

Well-known member
Joined
Jul 16, 2004
Messages
65
Location
Ohio
Programming Experience
3-5
I am working on a sort of Fantasy Football web based program. In it, you have to add a bunch of players to the game. It would be nice if I could just have the enter key submit the information.

Here is what the page looks like:
AddPlayer.jpg


The only thing I saw in the button properties was:

AccessKey

however, I dont know what I could set it to that would make the enter key run the button....

Any ideas?
 
I dont know if this makes any difference, but the button I want this to work on is in a user control on a web page. I didnt see a property called AcceptButton on the property list for the user control, or the aspx page it is on.

Here is a screen shot of the property windows:

The User Control properties:
UCproperties.jpg


The .aspx page properties:
IndexProperties.jpg
 
Back
Top