Call function in Global.asa

S

Steve

Is it possible to call a function in another file from
the Global.asa as you would with other ASP pages using
the <!--#include virtual="/includes/functions.asp"-->?

I need to access some functions from the
Application_OnStart event, but can't seem to get it to
work?

Thanks,
Steve
 
A

Aaron Bertrand - MVP

Is it possible to call a function in another file from
the Global.asa as you would with other ASP pages using
the <!--#include virtual="/includes/functions.asp"-->?

I need to access some functions from the
Application_OnStart event, but can't seem to get it to
work?

Why do you have functions *in* an event? I wouldn't think this would work.
You can declare your functions outside an event, then they are accessible
from all events. Or you can include a file in global.asa, see
http://www.aspfaq.com/2144
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,777
Messages
2,569,604
Members
45,235
Latest member
Top Crypto Podcasts_

Latest Threads

Top