OnStartPage is a default function an asp pages calls when
it creates the object.
Project needs Reference to ...
"Microsoft Active Server Pages Object Library"
Also, the object has to be created using the asp Server object
set objME = Server.CreateObject("MyDll.MyClass")
Private Request As IRequest
Private Response As IResponse
Private Server As IServer
Private Session As ISessionObject
Private Application As IApplicationObject
Public Function OnStartPage(aspScriptingContext As ScriptingContext)
On Error Resume Next
Set Request = aspScriptingContext.Request
Set Response = aspScriptingContext.Response
Set Server = aspScriptingContext.Server
Set Session = aspScriptingContext.Session
Set Applicaiton = aspScriptingContext.Application
End Function