How to prevent Form submission if users hit enter.

  • Thread starter Thread starter Pamela Chatterjee
  • Start date Start date
P

Pamela Chatterjee

In my Web Form I have more than one Textbox for user input. If I hit
enter to any Textbox its submitting the form. How can I prevent Form
submission if users hit enter to the textbox? I want to submit the
form only when user will hit submit button.

Thanks for any help.

Pamela.
 
* (e-mail address removed) (Pamela Chatterjee) scripsit:
In my Web Form I have more than one Textbox for user input. If I hit
enter to any Textbox its submitting the form. How can I prevent Form
submission if users hit enter to the textbox? I want to submit the
form only when user will hit submit button.

Notice that this is a Windows Forms group.

You may want to turn to the ng for ASP.NET Web Controls questions for future
ASP.NET Web Control related questions:

<
Web interface:

<http://msdn.microsoft.com/newsgroup...ft.public.dotnet.framework.aspnet.webcontrols>
 
Back
Top