473,320 Members | 1,828 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

server event not firing

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.
Nov 17 '05 #1
2 2153
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.

"Lee Swanson" <le*@nospam.ibc.com.au> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
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.

Nov 17 '05 #2
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.

"Lee Swanson" <le*@nospam.ibc.com.au> wrote in message
news:uW**************@TK2MSFTNGP12.phx.gbl...
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.

Nov 17 '05 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

13
by: Manuel Lopez | last post by:
I have a puzzling form timer problem that I didn't experience prior to Access 2003 (though I'm not sure access 2003 is to blame). Here's the situation: a computer has two access 2003 databases on...
0
by: Chris Fink | last post by:
My goal is to have an ASP.NET checkbox server tag with it's autopostback set to true, that when clicked will run the checkbox's CheckedChanged event. However, I would like to try to add a...
4
by: Bob | last post by:
Hi, I have already posted a similar problem but it 's still a problem for me, so ... I define a table in aspx file and Javascript code. Purpose: when the user clicks on any cell of the table,...
4
by: =?Utf-8?B?QW1yaXQgS29obGk=?= | last post by:
Hello, I have a button that starts up a Thread and runs it in the background. While the Thread is running, all the Ajax controls, including the events fired by the PageRequestManager, stop...
5
by: greg | last post by:
Written in Asp.Net 2.0 The session_start fires on Development server running withing Visual Studio 2005 and also if access web site via localhost on development machine. But if copy to...
0
by: DolphinDB | last post by:
The formulas of 101 quantitative trading alphas used by WorldQuant were presented in the paper 101 Formulaic Alphas. However, some formulas are complex, leading to challenges in calculation. Take...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.