server event not firing

  • Thread starter Thread starter Lee Swanson
  • Start date Start date
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.
 
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.
 
Back
Top