server event not firing

L

Lee Swanson

I have a form with a single field and a submit button with a server event.

If I click the submit button, the event runs and everything is fine, if I
hit enter in the form, the server event does not fire!

Another wierd thing is, when I add a second text input field, the event
fires when I press enter.

I could change the button to a "button" so that the form wont submit unless
the button is clicked, but I want to be able to submit with an enter press.

Has anyone else come accross this problem?

Lee.
 
V

Victor Garcia Aprea [MVP]

Yup, this has been addressed lots of times in the past. Search in
http://groups.google.com with keywords like "hitting enter doesn't submit
form"


--
Victor Garcia Aprea
Microsoft MVP | ASP.NET
Looking for insights on ASP.NET? Read my blog:
http://obies.com/vga/blog.aspx
To contact me remove 'NOSPAM'. Please post all questions to the newsgroup
and not by private mail.
 

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,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top