RSS Forums RSS

Using Javascript code in ASP.NET

Please support our JavaScript / DHTML / AJAX advertiser: Programming Forums
Reply
Posts: 8
Reputation: rooparaj is an unknown quantity at this point 
Solved Threads: 0
rooparaj rooparaj is offline Offline
Newbie Poster

Using Javascript code in ASP.NET

  #1  
Mar 22nd, 2005
Hi everybody,

I am facing problem in javascript.
I got javascript code for menu creation.
That code is saved as menu.jc file.
My Doubts are:
1) How do i use in my mainpage.aspx?
2) How do i create dll file for this javascipt file so that i can use it directly?

PLz its very urgent.

Thank you all
Roopa Raj
AddThis Social Bookmark Button
Reply With Quote  
Posts: 1,171
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Solved Threads: 64
hollystyles's Avatar
hollystyles hollystyles is offline Offline
Veteran Poster

Re: Using Javascript code in ASP.NET

  #2  
Mar 22nd, 2005
Put this line in mainpage.aspx.

<script language="javascript" src="menu.js"></script>

You can't compile javascript to a dll, dll's are native code. Javascript is a scripting language and scripting languages are parsed and JIT compiled on the fly by an interpreter. In your case the interpreter is the Virtual Machine running in the browser or the Sun Java Runtime that is installed, depending on how the client is set up and what OS they are using.
Reply With Quote  
Posts: 8
Reputation: rooparaj is an unknown quantity at this point 
Solved Threads: 0
rooparaj rooparaj is offline Offline
Newbie Poster

Re: Using Javascript code in ASP.NET

  #3  
Mar 22nd, 2005
Thanks for the solution.
Reply With Quote  
Reply

Only community members can participate in forum threads. You must register or log in to contribute.



Views: 14304 | Replies: 2 | Currently Viewing: 1 (0 members and 1 guests)

 

Thread Tools Display Modes
Forums | Blogs | Tutorials | Code Snippets | Whitepapers | RSS Feeds | Advertising
All times are GMT -4. The time now is 2:15 pm.
Newsletter Archive - Sitemap - Privacy Statement - Acceptable Use Policy - Contact Us
Forum system based on vBulletin Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC