Forum Moderators: open

Message Too Old, No Replies

Pressing enter in a multiline text area submits the form

         

wll6568

12:59 am on Oct 2, 2007 (gmt 0)

10+ Year Member



I have a text area and its multiline. It's working fine on IE, when I press the enter button and it will go to the next line below, but this is not the case in Firefox. When I pressed enter in it, it will submit the form. Anybody know how to fix that?

wll6568

1:04 am on Oct 2, 2007 (gmt 0)

10+ Year Member



This is the code:

<textarea name="_ctl0:ContentPlaceHolder1:cucCantact:txbMessage" rows="10" id="_ctl0_ContentPlaceHolder1_cucCantact_txbMessage" style="width:240px;">Testing</textarea>

wll6568

1:51 am on Oct 2, 2007 (gmt 0)

10+ Year Member



Actually, this is the code:

<asp:TextBox ID="txbMessage" runat="server" MaxLength="2000" width="240px" Rows="10" TextMode="MultiLine" />