Request.Browser will provide you with complete information about the browser, where you can check the version, browser name, browser type, etc.
if(Request.Browser.Browser == "IE") { HtmlLink css = new HtmlLink(); css.Href = ResolveClientUrl("~/style/StyleSheet.css"); css.Attributes["rel"] = "stylesheet"; css.Attributes["type"] = "text/css"; css.Attributes["media"] = "all"; Page.Header.Controls.Add(css); }
source share