Click here to Skip to main content
15,905,782 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hello to everybody i create one website on that i need to cal js file dynamically. but i dont know how to cal it .plz can anybody help me plz.


Thanks in advance!.
Posted
Comments
J.Karthick 6-Jan-12 7:00am    
Just drag and drop that .js file in your .aspx page(Inside <HEAD> </HEAD> tag).

Then you just call that functions inside .js "onKeypress" or "OnClick" or "OnBlur" event as your wish

Adding basic Js file. Check this link

http://www.w3schools.com/js/js_whereto.asp[^]

Managing your Js

Managing Your JavaScript Library in ASP.NET[^]

Thanks
 
Share this answer
 
v3
Hi,

if you mean to say call your javascript from code behind then below link may help you,

check RegisterStartupScript

thanks
-amit
 
Share this answer
 
See this CP link also, this may helps you

A Web Server Authoring Dynamic JavaScript[^]
 
Share this answer
 

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