Code Comments

Programming Forum and web based access to our favorite programming groups.
For Programmers: Free Programming Magazines | New: Database administration forum
Registration is free! Edit your profileCalendarFind other membersFrequently Asked QuestionsSearch -> 
Post New Thread











Thread
Author

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

Report this thread to moderator Post Follow-up to this message
Old Post
Jerry C
04-18-08 12:35 AM


Re: css style sheets not working
On 17 Apr, 23:40, Jerry C <jerr...@nospam.nospam> wrote:
> I have a machine running IIS 6.0. I just replaced the web.config and sever
al
> aspx pages in the application and now the style sheets are not working. th
e
> 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 name> folder.

Report this thread to moderator Post Follow-up to this message
Old Post
Stan
04-18-08 12:35 AM


RE: css style sheets not working
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:
msdnmg@microsoft.com.

 ========================================
==========
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscript...ault.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: examnotes <jerryed@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
>


Report this thread to moderator Post Follow-up to this message
Old Post
Steven Cheng [MSFT]
04-18-08 10:05 AM


RE: css style sheets not working
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:
> msdnmg@microsoft.com.
>
>  ========================================
==========
> Get notification to my posts through email? Please refer to
> [url]http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif[/ur
l]
> ications.
>
>  ========================================
==========
> This posting is provided "AS IS" with no warranties, and confers no rights
.
>
> -------------------- 
> several 
> the 
>
>

Report this thread to moderator Post Follow-up to this message
Old Post
Jerry C
04-18-08 01:32 PM


Sponsored Links




Last Thread Next Thread Next
Search this forum -> 
Post New Thread

ASP .NET archive

Show a Printable Version Send to friend Email This Page to Someone! subscribe to this thread Receive updates to this thread
Computer Consultants
Programming Jobs
Visual Basic Controls
SQL Server Programming
Webservices
Java Security
Visual Studio
C# Programming
Visual J++
Software engineering
Open source Software
Perl Programming
PHP Programming
ASP Programming
ASP .NET Programming
Visual Basic Programming
Windows Scripting Host
Java Programming
Java Help
Java Beans
VBScript
Cobol
MAC Applications
Unix Programming
Forum Jump:
All times are GMT. The time now is 07:31 PM.

 
Free MCSE Braindumps | Real Estate Topics

Programming forum archive

Copyrights CodeComments.com 2004 - 2006

Powered by vBulletin Copyright 2000-2006 Jelsoft Enterprises Limited.