System.Web.UI.WebControls.WebControl.SkinID Property

Gets or sets the skin to apply to the control.

Syntax

[System.ComponentModel.Browsable(true)]
public virtual string SkinID { set; get; }

Value

Documentation for this section has not yet been entered.

Remarks

Skins available to a control are contained in one or more skin files in a theme directory. The WebControl.SkinID property specifies which of these skins to apply to the control. A skin is specific to a particular control; you cannot share skin setting between controls of different types.

If you do not set the WebControl.SkinID property, a control uses the default skin if one is defined. For example, if a skin without an ID is defined for an System.Web.UI.WebControls.Image control, then that skin applies to all System.Web.UI.WebControls.Image controls that do not explicitly reference a skin by ID and that are not set to disable theming. If a skin with an ID is defined for an System.Web.UI.WebControls.Image control, then that skin applies to only System.Web.UI.WebControls.Image controls whose WebControl.SkinID is set to that ID.

If the skin files in a theme directory do not contain a skin with the specified WebControl.SkinID, an ArgumentException exception is thrown at runtime.

Requirements

Namespace: System.Web.UI.WebControls
Assembly: System.Web (in System.Web.dll)
Assembly Versions: 2.0.0.0