i

ASP.Net A Complete Guide

Skins

The skin file can be added under the theme folder. These files used to define the common property setting for controls like textbox, button, and label. The skin file has a .skin extension.

There are two types of skin files:

  • Default files

  • Named files

When there is a need to apply the same property to all the controls on the page, then we should use default skin. This skin automatically applies to the control that is defined in the skin. Such type of skin does not have the "SkinId" property.

 Named skin:

We can apply Named skin for that control that we can pass the SkinId. In short, the Named skins have the "SkinId".

Example:

Below example shows how we can assign the SkiId to the control.