用mts吧
TASPObject is the base class for Active Server pages when using IIS 3 or IIS 4.
Unit
AspTlb
Description
When you specify page-level event methods, the Active Server Object wizard generates a TASPObject descendant to implement the Automation server object that is embedded in its generated Active Server Page. The generated Active Server Page instantiates the TASPObject descendant by calling Server.CreateObject.
In addition to the support for the IDispatch interface that it inherits from TAutoObject, TASPObject supports the IASPObject interface. This interface introduces two methods:
OnStartPage, which ASP calls when the Active Server Page is opened in a user抯 Web Browser.
OnEndPage, which ASP calls when the Web browser closes the Active Server Page.
TASPObject implements these methods to provide support for its properties, which surface the ASP intrinsics (built-in Application, Session, Server, Request, and Response objects).