Not Loading CSS Referenced in Master Page - Website Start Option page lost (sometimes)

Last post 11-07-2009 1:19 PM by CapedCoder. 1 replies.

Sort Posts:

  • Not Loading CSS Referenced in Master Page - Website Start Option page lost (sometimes)

    11-07-2009, 10:53 AM
    • Member
      point Member
    • CapedCoder
    • Member since 07-08-2009, 2:49 AM
    • Posts 13

    I have a project where every page uses a master.  The master references the css file.  The master enables themes.  The "login page" does not seem to apply the css rules.  The login page does have the proper reference to the theme used for asp.net controls and they appear to render properly.

    Here's the rub.  This is a small site with 5 pages; Login.aspx, Default.aspx, SMTPLogs.aspx, HTTPErrLogs.aspx and WebSiteLogs.aspx.  It's nothing more than a simple site for me to view my log files in an organized manner.  I had completed the Login, Default, SMTP and HTTPErr pages and was working on the WebSiteLogs.... hadn't touched the other pages/parts of the project for some time and specifically master page, the login page, the Home page,  the css file or the skin file for hours.

    Design a little, code a little, view the result of those efforts... progressing nicely and on the last page when.....

    Out of the blue, when I started the project in debug mode, the Login page lost the formatting associated with the css file.  When I choose to "view source" with the login page on display, the proper reference to the css file is there.  In the process of looking, I selected the menu option:

    Website - Start options.

    I see my start options page flash on screen for an instand then it shows a dialog page stating:

    "There are no property pages for the selection".  The top bar reflects a title of EITHER "DOCUMENT Property Pages" or the name of the file associated with the tab followed by "Property Pages" and it has options of Ok, Cancel and Apply with Apply not being selectable.

    Now, if I right-click on the login page and choose "Set as start page" and then  IMMEDIATELY choos Website - Start options, it comes up normally.  If I have the "Start Page" tab selected, it also comes up normally.  If I have a page (apsx page or vb code-behine) tab selected, I get the bad behavior indicated.

    I am at a loss.

     

  • Re: Not Loading CSS Referenced in Master Page - Website Start Option page lost (sometimes)

    11-07-2009, 1:19 PM
    Answer
    • Member
      point Member
    • CapedCoder
    • Member since 07-08-2009, 2:49 AM
    • Posts 13

    For anyone having trouble locating a solutions to this, I found a simple one. 

    Add a location section to the web.congif referecing the path where the css file resides and grant access.  Ditto for any images referenced before actually being logged in. 

Page 1 of 1 (2 items)