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 Rhinorhino on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP.Net 2.0 Default Button

Status
Not open for further replies.

arst06d

Programmer
Joined
Nov 29, 2002
Messages
324
Hi

I have read that you can specify a default button by using theDefaultButton property of a form or panel, so if the Enter key is pressed within the scope of the form or panel the specified button will be 'clicked'.

Doesn't seem to work.

I have two panels, each containing a table and a button. Each panel has the DefaultButton property set to its contained button.

In the second panel, within the table I also have some textboxes.

I notice that when I'm tabbing around the textboxes in panel 2, the focus highlight shifts to the button up the page in panel1, and hitting Enter will 'click' that button.

Any clues?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top