Article ID: 238274 - Last Review: July 15, 2004 - Revision: 3.4 How To Obtain ObjectContext with ObjectControl Inside VB COM DLL From ASP and MTSThis article was previously published under Q238274 SUMMARY This article covers the implementation of the MTS
ObjectContext through the ObjectControl inside a Visual Basic component under
MTS control for ASP. This is extremely useful if you would like to have direct access to the ASP intrinsic objects; for example, Application, Session, Response, Request, and Server. In IIS 3.0, components access ASP built-in objects through the IScriptingContext interface. Components that need to access the built-in objects do so through page-level event methods. While this method is still supported, an alternative now exists and is recommended as an improvement over page-level event methods. Instead, use the ObjectContext Object to access the built-in objects. ObjectContext makes IIS applications better suited for large-scale scenarios and provides support for transaction processing. It is highly recommended that you convert your existing ASP-based applications to this new approach if they are high-volume applications. This conversion is required if your applications support transaction processing. Implement the ObjectControl interface when you want to define context-specific initialization and cleanup procedures for your MTS objects and specify whether or not the objects can be recycled. The ObjectControl interface provides the following methods:
MORE INFORMATION
REFERENCES For additional information, click the article number below
to view the article in the Microsoft Knowledge Base: Q223406 How To Create an Empty MTS Package to Add Components for ASP
(http://support.microsoft.com/kb/223406/)
Developing a Visual Basic Component for IIS/MTS (http://msdn.microsoft.com/en-us/library/ms809958.aspx) Q230149 How To Access Session and Application Variables from Within a Visual Basic Component (http://support.microsoft.com/kb/230149/) APPLIES TO
| Article Translations
|
Back to the top
