ASP.NET Wrap Property
Definition and Usage
The Wrap property is used to set or return whether the text content wraps in a multiline text box.
This property is used only when TextMode="Multiline"
Syntax
<asp:TextBox Wrap="TRUE|FALSE" TextMode="MultiLine" runat="server"/>
Example
The following example sets the newline mode to "False":
<form runat="server"> <asp:TextBox id="tb1" runat="server" TextMode="MultiLine" Wrap="False" /> </form>
Example
- Set the Wrap Property of TextBox Control