Carole,
take a look at http://www.metabuilders.com/Tools/DefaultButtons.aspx
I use it, and it works.
Mike
-----Puvodní zpráva-----
Od: Carole Sullivan [mailto:carolesullivan@e...]
Odesláno: Thursday, March 13, 2003 8:30 PM
Komu: ASPX_Professional
Predmet: [aspx_professional] Submit form on enter
I have an asp button (btnEnter) in a Navigation Menu User Control.
I would like to trigger the btnEnter event when the ENTER button is
pressed.
I have tried (based on advice found online):
Me.Page.RegisterHiddenField("__EVENTTARGET", "btnEnter") to no avail, I
put this in the User Control and then in the base page, neither seemed to
work.
Can I do this w/o using Javascript to focus on the button, I would prefer
to leave my focus on a textbox located in the same user control.
Any advice would be greatly appreciated,
Carole