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
Prakash Tripathi
28
40.8k
6.3m
JQuery is not loading when using in @section
Feb 7 2015 10:24 AM
Hi Guys,
I have a queston that when I am putting <script src="~/Scripts/jquery-1.10.2.js"></script> in my Index.cshtml then JQuery is loading properly,
however when I am keeping it inside as below. It's doesn't load/work.
@section scripts{
@Scripts.Render("~/Scripts/jquery-1.10.2.js")
//Doesn't work
}
Interestingly, one more JS file is loading is either ways.
<script src="~/Scripts/jquery.unobtrusive-ajax.min.js"></script>
//Works
@section scripts{
@Scripts.Render("~/Scripts/jquery.unobtrusive-ajax.js")
//Works
}
Any idea why it's happening like this? Is it related to timing/sequence or there is something else?
Thanks
Reply
Answers (
2
)
Download visual studio 2013 for windows 8
Error in MVC when create controller - Code First