Adding skins to Themes - asp:TextBox BackColor="Yellow" BorderStyle="Dotted" Runat="Server"
Q. Which of the following is a valid skin code inside a skin file?- Published on 16 Jun 15a. < 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” />
You must always include a Runat=”server” attribute, but you can never include the ID attribute when declaring a control in a Skin.