473,468 Members | 1,713 Online
Bytes | Software Development & Data Engineering Community
Create Post

Home Posts Topics Members FAQ

css style sheets not working

I have a machine running IIS 6.0. I just replaced the web.config and several
aspx pages in the application and now the style sheets are not working. the
images from the themes work but not the css files.

Any help.

--
Jerry
Jun 27 '08 #1
5 10479
On 17 Apr, 23:40, Jerry C <jerr...@nospam.nospamwrote:
I have a machine running IIS 6.0. I just replaced the web.config and several
aspx pages in the application and now the style sheets are not working. the
images from the themes work but not the css files.

Any help.

--
Jerry
Make sure that any css files are in the App_Themes/<theme namefolder.
Jun 27 '08 #2
Hi Jerry,

As for the ASP.NET application, how did you originally reference those css
style sheets? Are you using the Theme feature to bind the stylesheets(put
them in Theme folder and let them be linked automatically)?

By default, style sheets under Theme folder will be linked into page(that
has applied the certain Theme) automatically. To verify this, you can
visit the certain page(that doesn show style corrrectly) and open its html
source in client browser to see whether the style sheet link is displayed
in the client source.

Also, have you checked the aspx page template to see whether there is any
difference between the original one?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
>Thread-Topic: css style sheets not working
thread-index: Acig2/jPmvbRmVNLSnuZKxfmRujgkQ==
X-WBNR-Posting-Host: 70.147.65.238
From: =?Utf-8?B?SmVycnkgQw==?= <je*****@nospam.nospam>
Subject: css style sheets not working
Date: Thu, 17 Apr 2008 15:40:01 -0700

I have a machine running IIS 6.0. I just replaced the web.config and
several
>aspx pages in the application and now the style sheets are not working.
the
>images from the themes work but not the css files.

Any help.

--
Jerry
Jun 27 '08 #3
Thank you for the replys.

The web.config file had two entries like:
<location path="styles.css">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
On the development machine it worked OK but when I droped this web.config
file on another server it did not. It did not like duplicate location path
entries for the same file. Also FYI if the same css file is in the main
directory and in the App_Themes/theme directory it causes problems.

Thank you for your help.
--
Jerry
"Steven Cheng [MSFT]" wrote:
Hi Jerry,

As for the ASP.NET application, how did you originally reference those css
style sheets? Are you using the Theme feature to bind the stylesheets(put
them in Theme folder and let them be linked automatically)?

By default, style sheets under Theme folder will be linked into page(that
has applied the certain Theme) automatically. To verify this, you can
visit the certain page(that doesn show style corrrectly) and open its html
source in client browser to see whether the style sheet link is displayed
in the client source.

Also, have you checked the aspx page template to see whether there is any
difference between the original one?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.

--------------------
Thread-Topic: css style sheets not working
thread-index: Acig2/jPmvbRmVNLSnuZKxfmRujgkQ==
X-WBNR-Posting-Host: 70.147.65.238
From: =?Utf-8?B?SmVycnkgQw==?= <je*****@nospam.nospam>
Subject: css style sheets not working
Date: Thu, 17 Apr 2008 15:40:01 -0700

I have a machine running IIS 6.0. I just replaced the web.config and
several
aspx pages in the application and now the style sheets are not working.
the
images from the themes work but not the css files.

Any help.

--
Jerry

Jun 27 '08 #4
Thanks for your reply Jerry,

Yes, the further information you provided is very important. That remind me
of the potentitial cause from forms authentication protection on pages or
resource in the application.

So you're using Forms authentication, and by default deny user="?",
correct? Is the application hosted in IIS on both machine? Normally asp.net
forms authenticaction won't affect those static files(such as css ,
jscript...) because only those ASP.NET documents(aspx, ascx ..) will be
forwarded to ASP.NET runtime for processing. However, you can check on the
server to see whether the IIS extention mapping has bee changed that those
static files will also be processed by ASP.NET runtime.

For testing , you can also first turn off forms authentication protection
on all page(set allow users="*") to see whether the style sheet can be
accessed correctly. Also, since those Theme files are for displaying
only, I suggest you consider add a rule (through <location) to allow all
users access for the Theme folder. e.g.

<location path="App_Themes">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
If you have any other findings, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: =?Utf-8?B?SmVycnkgQw==?= <je*****@nospam.nospam>
References: <E8**********************************@microsoft.co m>
<IM**************@TK2MSFTNGHUB02.phx.gbl>
>Subject: RE: css style sheets not working
Date: Fri, 18 Apr 2008 05:28:01 -0700
>
Thank you for the replys.

The web.config file had two entries like:
<location path="styles.css">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
On the development machine it worked OK but when I droped this web.config
file on another server it did not. It did not like duplicate location path
entries for the same file. Also FYI if the same css file is in the main
directory and in the App_Themes/theme directory it causes problems.

Thank you for your help.
--
Jerry
"Steven Cheng [MSFT]" wrote:
>Hi Jerry,

As for the ASP.NET application, how did you originally reference those
css
>style sheets? Are you using the Theme feature to bind the
stylesheets(put
>them in Theme folder and let them be linked automatically)?

By default, style sheets under Theme folder will be linked into
page(that
>has applied the certain Theme) automatically. To verify this, you can
visit the certain page(that doesn show style corrrectly) and open its
html
>source in client browser to see whether the style sheet link is
displayed
>in the client source.

Also, have you checked the aspx page template to see whether there is
any
>difference between the original one?

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments
and
>suggestions about how we can improve the support we provide to you.
Please
>feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
>ications.

================================================= =
This posting is provided "AS IS" with no warranties, and confers no
rights.
>>
--------------------
>Thread-Topic: css style sheets not working
thread-index: Acig2/jPmvbRmVNLSnuZKxfmRujgkQ==
X-WBNR-Posting-Host: 70.147.65.238
From: =?Utf-8?B?SmVycnkgQw==?= <je*****@nospam.nospam>
Subject: css style sheets not working
Date: Thu, 17 Apr 2008 15:40:01 -0700

I have a machine running IIS 6.0. I just replaced the web.config and
several
>aspx pages in the application and now the style sheets are not working.
the
>images from the themes work but not the css files.

Any help.

--
Jerry

Jun 27 '08 #5
Hi Jerry,

Have you got any progress on this issue? If there is anything else we can
help, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ult.aspx#notif
ications.

==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.
--------------------
>From: st*****@online.microsoft.com (Steven Cheng [MSFT])
Organization: Microsoft
Date: Mon, 21 Apr 2008 04:46:04 GMT
Subject: RE: css style sheets not working
>
Thanks for your reply Jerry,

Yes, the further information you provided is very important. That remind
me
>of the potentitial cause from forms authentication protection on pages or
resource in the application.

So you're using Forms authentication, and by default deny user="?",
correct? Is the application hosted in IIS on both machine? Normally
asp.net
>forms authenticaction won't affect those static files(such as css ,
jscript...) because only those ASP.NET documents(aspx, ascx ..) will be
forwarded to ASP.NET runtime for processing. However, you can check on the
server to see whether the IIS extention mapping has bee changed that
those
>static files will also be processed by ASP.NET runtime.

For testing , you can also first turn off forms authentication protection
on all page(set allow users="*") to see whether the style sheet can be
accessed correctly. Also, since those Theme files are for displaying
only, I suggest you consider add a rule (through <location) to allow all
users access for the Theme folder. e.g.

<location path="App_Themes">
<system.web>
<authorization>
<allow users="*"/>
</authorization>
</system.web>
</location>
If you have any other findings, welcome to post here.

Sincerely,

Steven Cheng

Microsoft MSDN Online Support Lead
Delighting our customers is our #1 priority. We welcome your comments and
suggestions about how we can improve the support we provide to you. Please
feel free to let my manager know what you think of the level of service
provided. You can send feedback directly to my manager at:
ms****@microsoft.com.

================================================= =
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscripti...ault.aspx#noti
f
>ications.

================================================= =
T
Jun 27 '08 #6

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

Similar topics

16
by: Geoff Cox | last post by:
Hello, I publish some web pages using large fonts and would like to give the user the opportunity to print the pages using a smaller font. I believe that this is possible using different style...
2
by: Luke Bellamy | last post by:
Hi, I have been looking for a way to incorperate several different style sheets into a web page (i.e cascading effect). I have looked into the @import statement which seems to do what I want but...
3
by: Phil Thompson | last post by:
does it matter in which order i place different style sheets i.e. <link rel="stylesheet" type="text/css" media="screen" href="style/screen.css" /> <link rel="stylesheet" type="text/css"...
12
by: relaxedrob | last post by:
Hi All! I have a page with with the following style information: <link rel="stylesheet" type="text/css" href="/eEmployment/eTech.css" /> <style type="text/css"> DIV.Application {...
5
by: JezB | last post by:
Is it possible to programatically examine and modify a page's Styles (including Cascading Style Sheets) within the code-behind-module (eg. c#) ? My guess is that since these are HTML elements the...
12
by: Jarno Suni | last post by:
I want a device to use styles given for media type handheld and not the styles given for media type screen, if the device supports media types handheld and screen. Is it possible without writing...
2
by: Hallvard B Furuseth | last post by:
Are there any guidelines or conventions for how to organize the preferred and alternate style sheets for a site, sheets for different media, and what titles to give them in the <link...
1
by: mscertified | last post by:
Can anyone explain how references to style sheets work, I've exhausted looking in help, its all so confusing. I have three style sheets in my project under 'Style Sheets'. Only the first style...
10
by: Ed Jay | last post by:
I do not want to load two style sheets for screen and print media. I'm having difficulty grasping the use of the @print statement, or its syntax. Would someone please provide a simple explanation....
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
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
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...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
0
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...

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.