To add multiline text box add a simple textbox in asp.net and set textmode property to MultiLine.
TextMode="MultiLine"
you can assign the maximum allowed characters also, to restrict error and unwanted spamming. if want that in particular mode textbox should not editable, you can add readonly property to false.
How to Add MultiLine Textbox/TextArea in ASP.NET Example:
<%@ Page Language="C#" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" >
<html xmlns="">
<head>
<title>How to use use textbox.</title>
</head>
<body>
<form id="form1" runat="server">
<div>
<asp:TextBox ID="TextBox1" TextMode="MultiLine" MaxLength="1000" Height="100" Width="300" runat="server"></asp:TextBox>
</div>
</form>
</body>
</html>
No comments:
Post a Comment