Asp:textbox - how does user 'enter' to next line?

I have a asp:textbox control followed by a button.

The textbox is multiple lines, but when users hit ‘enter’ to go to the next line (trying to do a carriage return), the button ‘onclick’ event is executed.

how do I change that?

hmmm. That is very strange. I have never had this issue. What if you change it to a <textarea>? Although a multi line text box renders as a text area. What is your code for the text box?

here is the relevant section

    &lt;tr&gt;&lt;td colspan="2"&gt;Enter message below:&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td colspan="2"&gt;&lt;asp:TextBox ID="mMessage" runat="server" Width="430px" Height="200px" Rows="4"&gt;&lt;/asp:TextBox&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;tr&gt;&lt;td /&gt;&lt;td&gt;&lt;asp:Button ID="mContactButton" runat="server" Text="Submit" Width="100" OnClick="mContactButtonClick" /&gt;&lt;/td&gt;&lt;/tr&gt;
    &lt;/table&gt;

figured it out:

need - TextMode=“MultiLine” - in the control

But this does beg another question. I have rows set to “4”. That apparently is not the number of text rows you can enter (I got to 8 rows and quit testing).

Is it the height of the textbox based on css lineheight * rows?

Yes, rows is basically height. Best is to leave that out and just set the height with css