ASP.NET Wrap property

Definition and usage

The Wrap property is used to set or return whether the content wraps within the Panel control.

Syntax

<asp:Panel Wrap="TRUE|FALSE" runat="server">
Some Content
</asp:Panel>

Example

The following example sets the Wrap property of the Panel control to "FALSE":

<form runat="server">
<asp:Panel ID="Pan1" Width="250px"> 
Wrap="FALSE" runat="server">
Some content
</asp:Panel>
</form>

Example

Set wrap behavior for Panel controls