I have two .css file one of Chrome brwoser and another one for all other brwoser, But why my java script is not getting called, I mean, I am unable to invoke the .css file in MVC view page, Please help me, Kindly find my below code which I am invoking through a.cshtml file
this is MVC 4.Net Project
var printCSSfile = "quickui.print.css";
if (navigator.userAgent.toLowerCase().indexOf("chrome") > -1) {
printCSSfile = "quickui.printChrome.css";
}
document.write('');

Khaja MoizuddinRank #270 · 9.4K reputationPosted Apr 9, 2017, 7:55 AM EDT
Kumar AURank #3,821 · 387 reputationPosted Apr 9, 2017, 8:12 AM EDT
Amit Kumar SinghRank #562 · 4.3K reputationPosted Apr 9, 2017, 8:45 AM EDT
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";Kumar AURank #3,821 · 387 reputationPosted Apr 9, 2017, 9:14 AM EDT
Midhun TpRank #388 · 6.5K reputationPosted Apr 9, 2017, 8:44 PM EDT