ObjectContext vs Passing ASP object to DLL 
Author Message
 ObjectContext vs Passing ASP object to DLL

We are in the process of creating a VB COM web
application.  To this point we have been passing
the request, response, server, and session object
from the asp page to the COM object.  I just
realized that these objects can be referenced
from the objectContext object.  Is it more
efficient to create the other ASP objects from
the objectcontext of pass them from the ASP page?

To pass the other ASP object from the ASP page to
the COM object I use the following code:

set objTest = Server.CreateObject
call objTest.PaintPage(server, session, request,

To create these object using the objectContext
object I use the following code within the VB

'// Dimension ASP Objects
Dim objServer As Server
Dim objResponse As Response
Dim objRequest As Request
Dim objSession As Session

Set objServer = m_objContext.Item("Server")
Set objResponse = m_objContext.Item("Response")
Set objRequest = m_objContext.Item("Request")
Set objSession = m_objContext.Item("Session")

Is one way more effiecient than the other?


Kevin Baum

Sent via Deja.com

Wed, 16 Jul 2003 04:50:49 GMT  
 [ 1 post ] 

 Relevant Pages 

1. ObjectContext vs. Passing ASP objects from ASP page

2. newbie: objectcontext in dll for asp

3. Passing an object to an ActiveX dll from ASP script

4. Passing word object to ASP from vb dll

5. Passing VB OLE objects in the Application object (IIS3, VB5, ASP, VBS)

6. ADO Connection Transaction vs. ObjectContext Transaction

7. ADOConnection.Transaction vs. ObjectContext.Transaction

8. Trying to retirve the ASP objectcontext in VB 6.0 using MTS

9. ObjectContext object error

10. ObjectContext In ActiveX-DLL and WinXP: Error 91

11. Can′t create ObjectContext object - why?

12. objectcontext make dll error


Powered by phpBB® Forum Software