input=text fires Submit when pressing Enter

J

Jerry

Hello

I have some textboxes (input type=Text) in a Form.

In some Forms if I Press Enter while I am in the Textbox It causes a Submit.
The input type is text not submit.

It's obsure that the effect is only on some webform's not in all.


How can I stop the submit ?
 
R

Ravikanth[MVP]

Hi

I guess, when you press enter form submit happens when
there is one textbox in the form.

Ravikanth
 
J

Jerry

Hmm, that's not the case....... But thanx anyway....

I have a textbox type=text
a Password Textbox type=password
and a Submit Button on the Form.

The WebForm was created with the FormDesigner from Visual Studio
using the WebControls.


I found that a textbox can have an Attribute "nosubmit" but it doesn't work
not......

<input type=text nosubmit .........>

very strange...
 

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