Default button when hit Enter

H

Harry

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
 
H

Harry

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

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,537
Members
45,023
Latest member
websitedesig25

Latest Threads

Top