Thursday, May 23, 2024
 Popular · Latest · Hot · Upcoming
132
rated 0 times [  135] [ 3]  / answers: 1 / hits: 23296  / 8 Years ago, wed, january 11, 2017, 12:00:00

I am new in asp.net mvc and I am trying to include .js files in my project but I could not access it on my browser. Like it.



@Scripts.Render(~/bundles/responds.js)
@Scripts.Render(~/bundles/jquery-1.11.3.min.js)
@Scripts.Render(~/bundles/jssor.slider-22.0.15.mini.js)
<script type=text/javascript>
</script>


Anyone can help me, how can I add these files in mvc project? These files exists in Scripts folder.


More From » asp.net

 Answers
2

I have solved my problem by just drag and drop script files from Scripts folder to at desired place in Index.cshtml and Visual studio auto generate below code.



<script src=~/Scripts/jquery-1.11.3.min.js></script>
<script src=~/Scripts/jssor.slider-22.1.5.mini.js></script>


Which includes the script files in asp.net MVC.


[#59392] Monday, January 9, 2017, 8 Years  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
reedmustafam

Total Points: 211
Total Questions: 83
Total Answers: 105

Location: Vanuatu
Member since Wed, Oct 14, 2020
4 Years ago
;