javascript - File exists but, Status 404 File not Found in master page of asp.net -
i giving javascript file path in master page of asp.net in browser console showing error of status 404 in javascript path i.e. in short browser not getting path of javascript file.
here code
<script type="text/javascript" src="index/analytics.js"></script> <script type="text/javascript" src="index/modernizr.js"></script> <script type="text/javascript" src="index/jquery-1.10.1.min.js"></script> <script type="text/javascript" src="index/jquery.dlmenu.js"></script> <script type="text/javascript" src="index/waypoints.min.js"></script> <script type="text/javascript" src="index/jquery.counterup.min.js"></script> <script type="text/javascript" src="index/owl.carousel.js"></script> <script type="text/javascript" src="index/viewportchecker.js"></script> <script type="text/javascript" src="index/bootstrap.min.js"></script> <script type="text/javascript" src="index/transit.js"></script> <script type="text/javascript" src="index/jquery.simpleslider.js"></script> <script type="text/javascript" src="index/backstretch.js"></script> <script type="text/javascript" src="index/custom.js"></script> <script type="text/javascript" src="index/jquery.flexisel.js"></script> <script type="text/javascript" src="index/classie.js"></script>
now js file in index folder only, confused why browser console showing type of error status: 404 javascript file not found.
please me solve issues.
thank you.
you might try using resolveurl() method reference jquery library ensure targeting proper location :
<script src="<%= resolveurl("~/index/jquery-1.10.1.min.js") %>" type="text/javascript"></script>
Comments
Post a Comment