Export (0) Print
Expand All

LoginView.SkinID Property

Gets or sets the skin to apply to the LoginView control.

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

public override string SkinID { get; set; }
/** @property */
public String get_SkinID ()

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

public override function get SkinID () : String

public override function set SkinID (value : String)

Not applicable.

Property Value

The name of the skin to apply to the LoginView control. The default value is an empty string ("").

Exception typeCondition

ArgumentException

The skin specified in the SkinID property does not exist in the theme.

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 theming. If a skin with an ID is defined for an Image control, then that skin applies only to Image controls whose SkinID is set to that ID.

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

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:
© 2014 Microsoft