How to Implement Dynamic CSS File in ASP.NET

at ASPX page put this


add this in title tag





and Page Load Event pagename.aspx.cs


if (!Page.IsPostBack)
{
if (Request.Browser.Browser == "IE" && Request.Browser.Version == "7.0") //&& Request.Browser.Version = "7")
{
lnkcss.Attributes.Add("href", "style/styleIE7.css");
}
else
{
lnkcss.Attributes.Add("href", "style/style1.css");
}
}

Comments

Popular posts from this blog

OutSystems – A Low-code Development Platform

What is difference between Azure Cognitive Search and Elastic Search

failed to access iis metabase asp.net