Question

I have created a usercontrol (a custom button control), how to apply skin on that control. What to write in the skin file for eg for a asp:button i will write <asp:button SkinID ="btnSkinBlue" runat = "server"/>.

What to write for a user control?

Was it helpful?

Solution 2

We require register tag <%@ Register Src="../../UserControls/RoundedButton.ascx" TagName="RoundedButton" TagPrefix="ttl" %>

OTHER TIPS

I haven't used skins with web custom controls, but I expect it to work like:

Ont the aspx:

<yourTag:CustomButton SkinID ="btnSkinBlue" runat = "server"/>

On the skin file:

<yourTag:CustomButton SkinID ="btnSkinBlue" runat = "server" CssClass="someclass" />

In the skin file, for defaults:

<yourTag:CustomButton runat = "server" CssClass="defaultClass" />
Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top