• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 295
  • Last Modified:

Making enter create a newline in a textbox on a webpage C# .asp

Hello
I have the following text box

<asp:TextBox ID="CommentsTextBox" runat="server" Height="260px" Width="342px"></asp:TextBox>

The only problem I have is when I press enter it's sending code back and crashes and I just want it
to create a newline

Does anyone know how to change this?

Thanks
0
ShockUK
Asked:
ShockUK
1 Solution
 
jpaulinoCommented:
You need to change the TextMode to "MultiLine"
 
<asp:TextBox ID="CommentsTextBox" runat="server" Height="260px" Width="342px" TextMode="MultiLine"></asp:TextBox>
0
 
ShockUKAuthor Commented:
So easy but so great
Thanks
0

Featured Post

What does it mean to be "Always On"?

Is your cloud always on? With an Always On cloud you won't have to worry about downtime for maintenance or software application code updates, ensuring that your bottom line isn't affected.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now