Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations strongm on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

server control in an ascx not getting theme on ascx LoadControl

Status
Not open for further replies.

j0em0mma

Programmer
Jul 31, 2003
131
US
I have a styleSheetTheme Web App defined in the web.config and I have 3rd party component library that is registered in the GAC. It gives proper code complete in design mode in html side. When I add this to a normal page in html and run the page, the skin I have defined for this control is loaded properly from the App_themes/ThemeName theme. Howerver, when I put this control within a usercontrol and then add the usercontrol to a page dynamically using LoadControl, The theme from the above directory is not applied. I have tried adding the skin definition for this control with a SkinId and explicitely setting the problem control's SkinId property in code behind, but to no avail.

Is there any way to do this?
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top