TECHNOLOGIES
FORUMS
JOBS
BOOKS
EVENTS
INTERVIEWS
Live
MORE
LEARN
Training
CAREER
MEMBERS
VIDEOS
NEWS
BLOGS
Sign Up
Login
No unread comment.
View All Comments
No unread message.
View All Messages
No unread notification.
View All Notifications
Answers
Post
An Article
A Blog
A News
A Video
An EBook
An Interview Question
Ask Question
Forums
Monthly Leaders
Forum guidelines
Kumar AU
1.4k
320
63.2k
How to Load the .css file for Chrome Browser and other Brows
Apr 9 2017 11:39 AM
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
<script type="text/javascript" language="javascript" >
var printCSSfile = "quickui.print.css";
if (navigator.userAgent.toLowerCase().indexOf("chrome") > -1) {
printCSSfile = "quickui.printChrome.css";
}
document.write('<link href="~/Content/' + printCSSfile + '" rel="stylesheet" type="text/css" />');
</script>
Reply
Answers (
5
)
write program time calculate like 2hours ago and 2 days ago
what is the use of disconnected architecture in ado.net