Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Focus of a Form

Status
Not open for further replies.

nevets2001uk

IS-IT--Management
Jun 26, 2002
609
0
0
GB
I have a number of forms on various pages of my web application and on most of them you can type in the text boxes and press enter, which will then fire off the event as if the button had been clicked. On some pages this doesn't work and you have to actually click the button before the form is posted.

How can I make all the forms post when the user clicks enter?

Also will this still work if I change my buttons to ImageButtons?

Steve Gordon
 
There is a control available for free on called Default Button. I would recommend looking at it as it includes source code.
Also if you have focus issues look at FirstFocus control

hth
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top