Miral
Miral

Reputation: 6038

SkinID on usercontrol

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?

Upvotes: 0

Views: 1925

Answers (2)

Miral
Miral

Reputation: 6038

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

Upvotes: 0

eglasius
eglasius

Reputation: 36037

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" />

Upvotes: 1

Related Questions