P
Puja
hi all,
On my page, i have external stylesheet
<link id="sbSiteCSS" rel="stylesheet" type="text/css" runat="server" />
whose href is determined on page_load
protected void Page_Load(object sender, EventArgs e)
{
sbSiteCSS.Attributes.Add("href", "http://www.mydomain.com.au/1/site.css?"
+ DateTime.Now);
}
I have added DateTime Attribute at the end so that every time my external
stylesheet is changed, browser loads new version of same stylesheet.
Now my problem is if I change few things in my stylesheet, it is not
reflected on my page even when I have added DateTime attribute at the end.
Browser seems to cache my stylesheet and keep on displaying same.
How do I get around this problem ?
Thanks
puja
On my page, i have external stylesheet
<link id="sbSiteCSS" rel="stylesheet" type="text/css" runat="server" />
whose href is determined on page_load
protected void Page_Load(object sender, EventArgs e)
{
sbSiteCSS.Attributes.Add("href", "http://www.mydomain.com.au/1/site.css?"
+ DateTime.Now);
}
I have added DateTime Attribute at the end so that every time my external
stylesheet is changed, browser loads new version of same stylesheet.
Now my problem is if I change few things in my stylesheet, it is not
reflected on my page even when I have added DateTime attribute at the end.
Browser seems to cache my stylesheet and keep on displaying same.
How do I get around this problem ?
Thanks
puja