PanelStyle.BackImageUrl Property

Gets or sets the URL of the background image for the panel control.

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in system.web.dll)

public:
virtual property String^ BackImageUrl {
	String^ get ();
	void set (String^ value);
}
/** @property */
public String get_BackImageUrl ()

/** @property */
public void set_BackImageUrl (String value)

public function get BackImageUrl () : String

public function set BackImageUrl (value : String)

Not applicable.

Property Value

The URL of the background image for the panel control. The default value is an empty string ("").

Exception typeCondition

ArgumentNullException

The BackImageUrl property is a null reference (Nothing in Visual Basic).

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.

No code example is currently available or this language may not be supported.

Windows 98, Windows Server 2000 SP4, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

ADD
Show: