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

Simulating a button-click after user types in textbox & hits "enter"

Status
Not open for further replies.

KingRichard3

Programmer
Feb 9, 2005
58
US
I have many dynamically generated textbox/command button pairs on a page. How can I set the button to act as if it was clicked after the user types in a value in its corresponding textbox and then hits the "enter" key?

Thanks,
Rick
 
P.S. I know the following exists for a page (and can be inserted into Page_Load:
Code:
Page.RegisterHiddenField("__EVENTTARGET", "cmdSubmit") 'where "cmdSubmit" is a string with the name of the default button
But does anything like that exist for an individual control?

Thanks again,
Rick
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top