Topic: Referencing a JavaScript or JScript File
Share/Save/Bookmark
Referencing JavaScript or JScript File in ASP.Net
 
1. Go to the ASP.Net page you want to add the Script File reference and open the markup
2. Inside the <Header> tags, add the following line:
3. <scripttype="text/javascript" src="Folder/File"><script>
 
      Where "Folder/File" is the location of the file
      E.g. <script type="text/javascript" src="subs/myJavaScriptFile.js"><script>
 
Inside the .js file you would put JavaScript functions.