Page.LoadControl and CSS

  • Thread starter Thread starter Ben Fidge
  • Start date Start date
B

Ben Fidge

I've got a page that dynamically loads web UserControls at run-time. The
problem is that CSS styles applied to the UserControl's controls and page
elements aren't being applied.

Any ideas?

Thanks

Ben
 
Hi Ben,

Apply CSS file in Page that contains UserControl, and apply CSS classes in
UserCOntrol but don't link your usercontrol with CSS file. so only Container
page will have linked to CSS and Usercontrol will inherit CSS file from the
container page.

Revert back if not getting.

Harsh
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top