WebPartZoneBase::BorderStyle Property
Gets or sets the kind of border that surrounds a WebPartZoneBase control.
Assembly: System.Web (in System.Web.dll)
public: virtual property BorderStyle BorderStyle { BorderStyle get () override; void set (BorderStyle value) override; }
<asp:WebPartZoneBase BorderStyle="BorderStyle" />
Property Value
Type: System.Web.UI.WebControls::BorderStyleA BorderStyle object that contains the kind of border. The default is Solid.
The base BorderStyle property is overridden by the WebPartZoneBase class to set the default border style for zones.
You can set the BorderStyle property for a WebPartZoneBase control either declaratively or programmatically. The border appears only when the zone is in a page display mode in which WebPartZoneBase class user interface (UI) features are visible, such as EditDisplayMode or DesignDisplayMode.
The following code example demonstrates the declarative use of the BorderStyle property on a WebPartZone control. For the full code example, including the code-behind source file and the .aspx page that contains the zone in this code, see the WebPartZoneBase class overview.
Notice that the BorderStyle attribute is set to a specific kind of border. After you load the page into a browser and switch the page into design display mode, you can see the effect of the property.
Windows 7, Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.