Making Javascript functions visible to multiple webforms

Posted on 2006-05-18
Medium Priority
Last Modified: 2009-12-16
I have Javascript functions embedded in the HTML code of certain webforms, delimited by <Script> tags.  What is the best way to make these functions visible to multiple forms in my application?  

I'm using Visual Studio 2003.

(I know this is a very general question... Links to good websites would be fine as well)

Thanks for your help.
Question by:mbizup
LVL 11

Accepted Solution

TornadoV earned 500 total points
ID: 16710359
Check out this link:


look for the following section: "Using the .js file to keep the javascript functions"

LVL 18

Assisted Solution

by:Elvio Lujan
Elvio Lujan earned 500 total points
ID: 16710659
put all js funcitions in one file .js example: "functions.js"

and in the head of all form where you nee to use it add:

<SCRIPT src="functions.js"></SCRIPT>

in the src you have to put the correct path of the file
LVL 61

Author Comment

ID: 16711120
TornadoV -- thanks for the URL
lem2802 -- Thanks for the added explanation


Featured Post

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This article discusses the ASP.NET AJAX ModalPopupExtender control. In this article we will show how to use the ModalPopupExtender control, how to display/show/call the ASP.NET AJAX ModalPopupExtender control from javascript, how to show/display/cal…
International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
This Micro Tutorial will teach you how to add a cinematic look to any film or video out there. There are very few simple steps that you will follow to do so. This will be demonstrated using Adobe Premiere Pro CS6.
Please read the paragraph below before following the instructions in the video — there are important caveats in the paragraph that I did not mention in the video. If your PaperPort 12 or PaperPort 14 is failing to start, or crashing, or hanging, …
Suggested Courses

850 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question