ASP.NET Themes outputs double StyleSheet Link Tags in header

Last post 03-23-2008 10:24 PM by Amanda Wang - MSFT. 3 replies.

Sort Posts:

  • ASP.NET Themes outputs double StyleSheet Link Tags in header

    03-19-2008, 6:48 AM
    • Loading...
    • Jaans
    • Joined on 03-19-2008, 10:39 AM
    • Posts 2

    Hmmm... I just noticed when I view source a couple of my ASP.NET projects that the style sheet links are repeated twice for the same CSS style in the html head.

    Interestingly enough the tags look different:

    • <link href="App_Themes/Default/Default.css" type="text/css" rel="stylesheet" />
    • <link href="App_Themes/Default/Default.css" type="text/css" rel="stylesheet" /><style type="text/css">

    Couldn't find anything with web searches - perhaps my Google CHI is a bit low today.

    I only have one theme, and there is only one .CSS file in it. I don't reference the theme directly and use only the web.config to specify the page and stylesheet themes.

    Any ideas?

  • Re: ASP.NET Themes outputs double StyleSheet Link Tags in header

    03-21-2008, 3:06 AM
    Answer

    Hi,

    Jaans:
    I don't reference the theme directly and use only the web.config to specify the page and stylesheet themes.

    Base on your description, you seemly set theme and stylesheettheme, right? like this : <pages theme="Green" styleSheetTheme="Green">

    I think it is the cause of the problem, try to remove one of the two. like styleSheetTheme.

    Only use theme to have a try:

    <pages theme="Green">

    Hope it helps.

     

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Yours sincerely,
    Amanda Wang
    Microsoft Online Community Support
  • Re: ASP.NET Themes outputs double StyleSheet Link Tags in header

    03-21-2008, 4:39 AM
    • Loading...
    • Jaans
    • Joined on 03-19-2008, 10:39 AM
    • Posts 2

    That's it!... I've just learned what the difference is and I'm ashamed to say I never picked up the difference.

    Thanks Amanda

     

     

  • Re: ASP.NET Themes outputs double StyleSheet Link Tags in header

    03-23-2008, 10:24 PM

    Hi,

    Jaans:
    I've just learned what the difference is and I'm ashamed to say I never picked up the difference.

    About the difference, you can refer the below link:

    http://weblogs.asp.net/vimodi/pages/WhatIs-StyleSheetTheme.aspx

    Hope it helps.

    Please remember to mark the replies as answers if they help and unmark them if they provide no help.


    Yours sincerely,
    Amanda Wang
    Microsoft Online Community Support
Page 1 of 1 (4 items)
Microsoft Communities
Page view counter