Asp.Net 2.0 Theme and CSS Styles Problems

S

shapper

Hello,

I created a theme folder where I place my Skin and CSS files.

I have 5 files:

Base.skin, Base.css, Default.css, Contacts.css, Print.css

Base Skin and CSS files should be used on all pages.

Default.css should be used by Default.aspx

Contacts.css should be used by Contacts.aspx

Print.css should be used by Print.aspx

However, when I run Default.aspx I see the lines:

<link href="App_Themes/Base/Default.css" type="text/css"
rel="stylesheet">
<link href="App_Themes/Base/Contacts.css" type="text/css"
rel="stylesheet">
<link href="App_Themes/Base/Print.css" type="text/css"
rel="stylesheet">

Why are all files loaded?

Contacts.css and Print.css styles are not used in Default.aspx so I am
just getting a slower web site.

Maybe I am looking at this in the wrong way.

Should I place my page CSS files outside of theme folder and load them
"manually" ?

Thanks,

Miguel
 

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

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,580
Members
45,054
Latest member
TrimKetoBoost

Latest Threads

Top