I think it's safe to say that that's a bad suggestion. This isn't ASP.
Instead, try doing:
<link rel="stylesheet" type="text/css" id="link" runat="server" />
and in codebehind:
protected HtmlGenericControl link;
private void Page_Load(object sender, EventArgs e) {
link.Attributes.Add("href", "somestyle.css");
}
Karl
--
MY ASP.Net tutorials
http://www.openmymind.net/
"WebMatrix" <We*******@discussions.microsoft.com> wrote in message
news:8A**********************************@microsof t.com...
Just use good old variables. In code behing add a public variable and then
insert server side script inside href like this:
<link href=" <%=strCSSName%>" rel="stylesheet">
"Islam Elkhayat" wrote:
Hello everybody
Ihave few .CSS files, I let user select the color schema of the whole
site using a radiobutton and save it in a cookie..
I want to retrieve the value of the cookie <link href=" HERE "
rel="stylesheet">
i try to put it using InnerHtml or InnerText but it fail using div, span
so on...
how can i handle this..
thanx