|
-
Feb 10th, 2006, 07:43 AM
#1
Thread Starter
Fanatic Member
Style Sheet Problems
I have recently upgraded an ASP.NET project (created in VB.NET 2003) to Visual Studio 2005.
In it, I am referencing a cascading style sheet (Styles.css).
In the design view, the formatting specified in my style sheet is applied. But when I build and debug by project, the style sheet is no longer applied. Why is this?
I have tried rebuilding my project, stopping and starting IIS but all to no avail...
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Feb 10th, 2006, 10:07 AM
#2
Re: Style Sheet Problems
In the source, (output), what is the URL to the CSS relative to your page?
-
Feb 10th, 2006, 10:16 AM
#3
Thread Starter
Fanatic Member
Re: Style Sheet Problems
Code:
<link href="Styles.css" rel="stylesheet" type="text/css" />
It is in the same directory.
Everything I say is either loose interpretation of dubious facts or idle speculation rooted in irrational sentiment. 
-
Feb 10th, 2006, 11:03 AM
#4
Re: Style Sheet Problems
This is extremely odd. Is there anything non-conventional that you are doing in the project? Can you paste the ASPX source as well as the output source?
-
Feb 10th, 2006, 01:20 PM
#5
Re: Style Sheet Problems
This might be related to the other thread from yesterday.
See if you have a solution option for random ports on your project (it makes URLS that look like http://localhost:XXXX/... where the :XXXX is a port number) and turn that option off.
Need to re-register ASP.NET?
C:\WINNT\Microsoft.NET\Framework\v#VERSIONNUMBER#\aspnet_regiis -i
(Edit #VERSIONNUMBER# as needed - do a DIR if you don't know)
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|