Default button per textbox

D

David Lozzi

Howdy,

I'm liking the new Page.Form.DefaultButton to control the Enter Key action
of the form, but I need to specify it per text box instead of the entire
form. For example, I have a master page with a user control at the top which
contains a text box and a search button. It has a user control on the left
that has the email field and submit button then there is the content body in
the middle that contains the product information and adding the product to
the cart. If I enter a value into the search text box at the top and press
enter, the product is added to the cart. how do I resolve this? am I stuck
using javascript? if so, what's the code for that.

thanks,
 

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

No members online now.

Forum statistics

Threads
473,969
Messages
2,570,161
Members
46,708
Latest member
SherleneF1

Latest Threads

Top