Valid skin code inside a skin file - Master Pages

Q.  Which of the following is a valid skin code inside a skin file?
- Published on 27 Jul 15

a. <asp:TextBox BackColor=”Yellow” BorderStyle=”Dotted” ID=”colorTxt” Runat=”Server”/>
b. <asp:TextBox BackColor=”Yellow” BorderStyle=”Dotted” Runat=”Server” />
c. <asp:TextBox BackColor=”Yellow” BorderStyle=”Dotted” ID=”colorTxt” />
d. None of the above.

ANSWER: <asp:TextBox BackColor=”Yellow” BorderStyle=”Dotted” Runat=”Server” />


  • Raj Singh   -Posted on 01 Oct 15
    < asp:TextBox BackColor=”Yellow” BorderStyle=”Dotted” Runat=”Server” />
    There are two types of skin default skin and named skin. Default skin does not have skinid. Default skin will be apply to whole page but named skin can be applied to particular control.
    A single Skin file can contains Skins for more than one control. You cannot include the ID attribute when declaring a control in a Skin but runat=”server” attribute is compulsory.
    You can include theme for a page by including following line in aspx page.
    <%@ Page Language=”C#” Theme=”YourThemeName” %>

Post your comment / Share knowledge

Enter the code shown above:
(Note: If you cannot read the numbers in the above image, reload the page to generate a new one.)