W
WT
Hello,
My web application uses themes, selecting a theme from codebind for current
page object.
Each theme includes several css files.
And I also add some specific javascript from codebehind as links in the
header object.
Using VS2008, framework 3.5, C#.
I need to set conditional statements in the header section of page to
correct IE css bugs, something like
<head>
<link rel="stylesheet" type="text/css" href="myprimary.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="myiehacks.css" />
<![endif]-->
<!--[if lte IE 6]>
<script type="text/javascript" src="myiescripts.js"></script>
<![endif]-->
<!--[if lt IE 6]>
<link rel="stylesheet" type="text/css" href="myiehacks-5.5.css" />
<![endif]-->
</head>
and these statements need to be after the global css installed by themes,
how to do this in a declarative way or/and in codebehind ?
What is the rule for css added by themes: do they come before or after
declaratives elements already in <head> ?
And what about thoses added during OnPreRender in the header object of the
page ?
Thanks for help.
CS
My web application uses themes, selecting a theme from codebind for current
page object.
Each theme includes several css files.
And I also add some specific javascript from codebehind as links in the
header object.
Using VS2008, framework 3.5, C#.
I need to set conditional statements in the header section of page to
correct IE css bugs, something like
<head>
<link rel="stylesheet" type="text/css" href="myprimary.css" />
<!--[if IE]>
<link rel="stylesheet" type="text/css" href="myiehacks.css" />
<![endif]-->
<!--[if lte IE 6]>
<script type="text/javascript" src="myiescripts.js"></script>
<![endif]-->
<!--[if lt IE 6]>
<link rel="stylesheet" type="text/css" href="myiehacks-5.5.css" />
<![endif]-->
</head>
and these statements need to be after the global css installed by themes,
how to do this in a declarative way or/and in codebehind ?
What is the rule for css added by themes: do they come before or after
declaratives elements already in <head> ?
And what about thoses added during OnPreRender in the header object of the
page ?
Thanks for help.
CS