Hello there,
If you're using .NET 2.0, you can include the js file in a master page.
If using 1.x, you will have to include it in each page via the <script
language='javascript' src="myjs.js"></scripttagging.
Alternatively, you can place the entire site as the src of a
single-framed frameset, and include the script tags in the frameset
page; then, when you call your js methods, always call
top.methodname(), since the frameset page is the top.
gr*******@optusnet.com.au wrote:
Hi there,
I'd like to know how to include a js file globally in asp.net so all my
pages can access js functions in this file. (Only include it once and
not include
this file one by one to all my pages.)
Thanks for your help.
Green