ASP.NET TextBox WrapProperty


TextBox 控件TextBox Control

Definition and Usage

The Wrap property is used to set or return whether text content wraps in a multiline text box.

This property is only used when TextMode="Multiline".

Syntax

<asp:TextBox Wrap="TRUE|FALSE" TextMode="MultiLine" runat="server"/>


Example

The following example sets the Wrap property to "False":

<form runat="server">
<asp:TextBox id="tb1" runat="server"
TextMode="MultiLine" Wrap="False" />
</form>

Demo Example »

TextBox 控件TextBox Control Other Extensions