Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Custom Function / Sub in global.asa

Status
Not open for further replies.

DaveJunior

Programmer
Jan 7, 2003
11
GB
I want a function/sub in my global.asa file that opens a connection to a database using a secure connection. I have written the function but whenever I try to use it in an ASP page it says Variable is undefined: 'OpenConnection'. I have <% OPTION EXPLICIT %> at the top of each of my ASP pages.

Any ideas? Is this possible to do? It would save me having an include file in each and every ASP file...
 
[tt]If you're getting an error number, search the number at

akuma.gif
T ® Ñ ¥​
 
The custom functions/subs in global.asa are NOT global. You can call them only from other functions/subs in global.asa
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top