Firefox submits form when pressing enter in text area

I have a text box here in ASP page,

but when I press enter to have more extra lines, the form would actually submit. This only happens in Firefox. It's fine on IE.

Does anyone know how to fix that?

<asp:TextBox ID="txbMessage" runat="server" MaxLength="2000" width="240px" Rows="10" TextMode="MultiLine" />
jtcyAsked:
Who is Participating?
 
kevp75Commented:
use a textarea instead
0
 
jtcyAuthor Commented:
It's asp.net, we can only use textbox
0
Free Tool: IP Lookup

Get more info about an IP address or domain name, such as organization, abuse contacts and geolocation.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

 
Lee SavidgeCommented:
Hi,

This is because ASP.NET pages have the submit button as the default action for the page. There is a way to override it. I have some code somewhere. I'll get back to you.

Regards,

Lee
0
 
Computer101Commented:
Forced accept.

Computer101
EE Admin
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.