default button

M

Mike Malone

I have a form with 2 textboxs and 2 buttons.

If the user enters text and then press enter the text change event is called but I really want the enter press to result in pressing a default button.

I have tried this: Page.RegisterHiddenField("__EVENTTARGET", "Button1"); but it doesn't work;

Any ideas?

- Mike
 

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
474,085
Messages
2,570,597
Members
47,218
Latest member
GracieDebo

Latest Threads

Top