User Name Password Register
DaniWeb IT Discussion Community
All
What is DaniWeb IT Discussion Community?
You're currently browsing the JavaScript / DHTML / AJAX section within the Web Development category of DaniWeb, a massive community of 361,040 software developers, web developers, Internet marketers, and tech gurus who are all enthusiastic about making contacts, networking, and learning from each other. In fact, there are 2,057 IT professionals currently interacting right now! Registration is free, only takes a minute and lets you enjoy all of the interactive features of the site.
Please support our JavaScript / DHTML / AJAX advertiser: Lunarpages Web Hosting
Views: 11324 | Replies: 2
Reply
Join Date: Jan 2005
Posts: 8
Reputation: rooparaj is an unknown quantity at this point 
Rep Power: 0
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  
Join Date: Feb 2005
Location: Braintree, UK
Posts: 1,161
Reputation: hollystyles will become famous soon enough hollystyles will become famous soon enough 
Rep Power: 7
Solved Threads: 58
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  
Join Date: Jan 2005
Posts: 8
Reputation: rooparaj is an unknown quantity at this point 
Rep Power: 0
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.

Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)

 

DaniWeb JavaScript / DHTML / AJAX Marketplace
Thread Tools Display Modes

Similar Threads
Other Threads in the JavaScript / DHTML / AJAX Forum

All times are GMT -4. The time now is 10:58 pm.
Forum system based on vBulletin Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©2003 - 2008 DaniWeb® LLC