Control.SkinID Property
Assembly: System.Web (in system.web.dll)
/** @property */ public String get_SkinID () /** @property */ public void set_SkinID (String value)
public function get SkinID () : String public function set SkinID (value : String)
Not applicable.
Property Value
The name of the skin to apply to the control. The default is Empty.Skins available to a control are contained in one or more skin files in a theme directory. The SkinID property specifies which of these skins to apply to the control. A skin is specific to a particular control; you cannot share skin settings between controls of different types.
If you do not set the SkinID property, a control uses the default skin if one is defined. For example, if a skin without an ID is defined for an Image control, then that skin applies to all Image controls that do not explicitly reference a skin by ID and that are not set to disable themes. If a skin with an ID is defined for an Image control, then that skin applies only to Image controls whose SkinID property is set to that ID.
If the skin files in a theme directory do not contain a skin with the specified SkinID property, an ArgumentException exception is thrown at run time.
| Topic | Location |
|---|---|
| How to: Apply ASP.NET Themes Programmatically | Building ASP .NET Web Applications |
| How to: Apply ASP.NET Themes | Building ASP .NET Web Applications |
| How to: Define ASP.NET Themes | Building ASP .NET Web Applications |
| How to: Apply ASP.NET Themes Programmatically | Building ASP .NET Web Applications |
| How to: Apply ASP.NET Themes | Building ASP .NET Web Applications |
| How to: Define ASP.NET Themes | Building ASP .NET Web Applications |