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 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” />
 
You must always include a Runat=”server” attribute, but you can never include the ID attribute when declaring a control in a Skin.

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.)