PanelStyle::BackImageUrl Property
.NET Framework (current version)
Gets or sets the URL of the background image for the panel control.
Assembly: System.Web (in System.Web.dll)
public: property String^ BackImageUrl { virtual String^ get(); virtual void set(String^ value); }
Property Value
Type: System::String^The URL of the background image for the panel control. The default value is an empty string ("").
| Exception | Condition |
|---|---|
| ArgumentNullException | The BackImageUrl property is null. |
The BackImageUrl property specifies the URL of the background image for the panel control. For this property to work, an image file must exist at the specified location. If the specified image file is not accessible, then the panel control is displayed without a background image.
The following code example applies the same background image to two panel controls, Panel1 and Panel2. For this example to work correctly, you must provide your own image. This code example is part of a larger example provided for the PanelStyle class.
.NET Framework
Available since 2.0
Available since 2.0
Show: