Tech
Forums
Jobs
Books
Events
Live
Interviews
More
Learn
Training
Career
Members
Videos
News
Blogs
Login
Sign Up
Ask Question
2
Reply
JQuery is not loading when using in @section
Prakash Tripathi
Feb 7 2015 10:24 AM
860
Reply
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
Upload Source Code
Select only zip and rar file.
Post
Reset
Cancel
Answers (
2
)
Next Recommended Forum
Download visual studio 2013 for windows 8
Error in MVC when create controller - Code First