M
Mukesh_Singh_Nick
I am learning classic ASP 3.0. Below are my questions:
1. Do we have to include (<!-- #include FILE="global.asa" -->) the
global.asa file into every .asp page? I am doing the examples in
Windows Notepad and not in DreamWeaver or InterDev. Or, does IIS
automatically associate global.asa, if one is present in the
application folder, with the pages in that folder?
2. Can we write other global functions that we intend to use accross
pages in an application in the global.asa file? I have done so but when
I call the method in a login.asp page, I get a TypeMismatch.
For e.g in login.asp
<%
Response.Write(CallMe())
Response.End
%>
In global.asa
Sub Application_onStart()
End Sub
....
.....etc. (application and session events)
Public Function CallMe()
CallMe = "Did you just call me?"
End Sub
1. Do we have to include (<!-- #include FILE="global.asa" -->) the
global.asa file into every .asp page? I am doing the examples in
Windows Notepad and not in DreamWeaver or InterDev. Or, does IIS
automatically associate global.asa, if one is present in the
application folder, with the pages in that folder?
2. Can we write other global functions that we intend to use accross
pages in an application in the global.asa file? I have done so but when
I call the method in a login.asp page, I get a TypeMismatch.
For e.g in login.asp
<%
Response.Write(CallMe())
Response.End
%>
In global.asa
Sub Application_onStart()
End Sub
....
.....etc. (application and session events)
Public Function CallMe()
CallMe = "Did you just call me?"
End Sub