input=text fires Submit when pressing Enter

  • Thread starter Thread starter Jerry
  • Start date Start date
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 ?
 
Hi

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

Ravikanth
 
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...
 
Back
Top