473,385 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

Asp.Net 2.0 Theme and CSS Styles Problems

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

Nov 25 '06 #1
1 1731
http://www.validome.org/

"shapper" <md*****@gmail.comwrote in message
news:11*********************@j44g2000cwa.googlegro ups.com...
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
Nov 25 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
by: pnp | last post by:
Hi all, Could I use an external dll (that windows also use for it's themes) from which my application could load it's graphics at runtime? Basically I wan't to be able to select the styles for my...
7
by: CJ Taylor | last post by:
Been doing a lot of reading on using XP Theme's and the comctl library. Would anyone highly agree that the manifest is the best approach? -CJ
7
by: Terry Olsen | last post by:
I paste the following code into each project to get XP theme support. 'Add this at the beginning of any program to enable Windows XP Visual Styles <System.STAThread()> Public Shared Sub Main() If...
1
by: David Thielen | last post by:
Hi; I am trying to use the SmokeAndGlass theme. First off, the css file has nothing in it. It's got <a> and <h#> and that's it. Shouldn't there be a lot more in the css file? And then second,...
1
by: Joey | last post by:
Hello, I have tried to programmatically set the theme for my master page by putting code in a "Page_PreInit" fuction in the master page's code behind. However, when I set a breakpoint there and...
2
by: Grumpy Aero Guy | last post by:
I have upgraded an extensive solution to VS 2005 from VS2003 ... no problems. I notice that in VS2005, the forms, when viewed in design mode, have a different appearance than they did in 2003,...
3
by: yeltsin27 | last post by:
Theming seems only to affect the text box of a FileUpload control, not the Browse button. Is there any way to theme the button as well? Thanks, ChrisN
3
by: yxq | last post by:
I want to know if my .net2.0 application can apply Vista theme when run in Windows Vista. How to do if it is possible. Thank you.
4
by: Neil Jones | last post by:
Hello, I would like to create my own theme(s) for a couple of my own blog sites. I am hoping a few better themes could bring lot more readers. So far, I have stayed with the default wordpress...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.