Click here to Skip to main content
15,891,529 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
sir how can I add  javascript file to a external source code in asp.net  
Posted
Updated 25-Feb-12 21:09pm
v2

Nice CodeProject article to add JavaScript in asp.net at: Managing Your JavaScript Library in ASP.NET[^]
 
Share this answer
 
Comments
thatraja 26-Feb-12 13:37pm    
That's a nice article, 5!
from your solution Explorer right click Add "New folder"
then rename "Script" then right click the created Folder name "Script"
then add -> New Item then pop up will show then choose "Web" and choose again name "JScript1.js" then place your code in JScript1.js

don't forget to reference your script to masterpage oki

vote and accept
if this will help you
thanks
 
Share this answer
 
v2
in your design page after closing of title tag you can use java script like this
JavaScript
<script type="text/javascript" language="javascript">
your code goes here...
</script>


and for using jscript go to your solution explorer window and add new item in that you can select jscript and you can use it in the web page.
 
Share this answer
 
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900