Results 1 to 5 of 5

Thread: Style Sheet Problems

  1. #1

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    Unhappy 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.

  2. #2
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    Re: Style Sheet Problems

    In the source, (output), what is the URL to the CSS relative to your page?

  3. #3

    Thread Starter
    Fanatic Member simonm's Avatar
    Join Date
    Sep 2000
    Location
    Devon, England
    Posts
    796

    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.

  4. #4
    I'm about to be a PowerPoster! mendhak's Avatar
    Join Date
    Feb 2002
    Location
    Ulaan Baator GooGoo: Frog
    Posts
    38,170

    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?

  5. #5
    C# Aficionado Lord_Rat's Avatar
    Join Date
    Sep 2001
    Location
    Cave
    Posts
    2,497

    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
  •  



Click Here to Expand Forum to Full Width