[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

microsoft.public.dotnet.framework.aspnet.buildingcontrols

applying skins to a dynamic control.

kal

6/7/2007 9:08:00 AM

I have created a label control dynamically
Label lDiv = new Label();

lDiv.ID = "CodeSnippet";

lDiv.SkinID = "CodeSkin";

lDiv.Text = "This is a test";

lDiv.RenderControl(writer);

I also created a skin dor it

<asp:Label runat="server" SkinID="CodeSkin" Font-Size="20px"/>

but the skin does note seem to be applied to the control.

Can you do this?

Kal
I put a skin in the