0

Does anybody know how to do this?

Theme A
  style_for_x.aspx.css
  style_for_y.aspx.css
Theme B
  style_for_x.aspx.css
  style_for_y.aspx.css

Or even better:

Theme A
  style_for_all_pages.css
  style_for_x.aspx.css
  style_for_y.aspx.css
Theme B
  style_for_all_pages.css
  style_for_x.aspx.css
  style_for_y.aspx.css
1
  • Can you clarify what you mean by "do"ing this? Commented Mar 21, 2010 at 12:53

1 Answer 1

1

The problem with ASP.NET themes is that all existing CSS files are included on every page.

Maybe you should move your CSS files to a different location (e.g. "~/css/ThemeA") and include them manually (or in a common base class for all of your pages) depending on the current page's name and the currently selected theme.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.