[ad_1]
I'm trying to link a js file from /js/file.js in the section in a master page. I tried everything I found on the internet with no luck. Not sure what I'm doing wrong.
<script type="text/javascript"
src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.2/jquery.min.js"/>
<script type="text/javascript" runat="server" src="~/js/jquery.sticky.js" />
The error I got is having something to do with the JS code in my opinon. Here's what I got:
BC30035: Syntax error.
Line 1: (function (factory) {
Line 2: if (typeof define === 'function' && define.amd) {
Line 3: // AMD. Register as an anonymous module.
I'm confused... Why is not working in asp.net since it's working perfectly in plain html/css.
[ad_2]
لینک منبع