Search code examples
asp.netthemesskin

master skin file in ASP.NET


My project has multiple themes with different colors.
I need to skin certain textboxes with a specific font/size/etc.[no color difference]
Currently, I add <asp:TextBox SkinID="skinned" runat="server".../> to all .skin files under each theme. Is there a way to put this textbox skin in one place, like a master skin?


Solution

  • You will need to list it under each theme, but you only need to list one control definition per theme. If you want a skin to be the default behavior for a control, specify the definition without a SkinID property.