Default button when hit Enter

  • Thread starter Thread starter Curt_C [MVP]
  • Start date Start date
Hi all,

I have a number of imagebuttons on a page and when the user enters data into
a text field I would like for the page to submit. How would I do that?

Currently, if the user hits Enter, it just posts to the server and returns
to the same page.

Thanks
Harry
 
Thanks Steve,
Page.RegisterHiddenField("__EVENTTARGET", btnSearch.ClientID) did the trick.
 
Back
Top