We're a community of 1077K IT Pros here for help, advice, solutions, professional growth and fun. Join us!
1,076,111 Members — Technology Publication meets Social Media
Username:
Password:
Lost login information?
Start New Discussion Reply to this Discussion

Using Javascript code in ASP.NET

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

3
Contributors
3
Replies
7 Years
Discussion Span
6 Months Ago
Last Updated
4
Views
rooparaj
Newbie Poster
8 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0

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.

hollystyles
Veteran Poster
1,188 posts since Feb 2005
Reputation Points: 262
Solved Threads: 68
Skill Endorsements: 0

Thanks for the solution.

rooparaj
Newbie Poster
8 posts since Jan 2005
Reputation Points: 10
Solved Threads: 0
Skill Endorsements: 0
<script language="javascript" src="menu.js"></script>
aaaa222
Newbie Poster
1 post since Nov 2012
Reputation Points: 0
Solved Threads: 0
Skill Endorsements: 0

This article has been dead for over three months: Start a new discussion instead

Post: Markdown Syntax: Formatting Help
 
You
 
© 2013 DaniWeb® LLC
Page rendered in 0.0595 seconds using 2.65MB