ObjectContext vs. Passing ASP objects from ASP page 
Author Message
 ObjectContext vs. Passing ASP objects from ASP page

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("COMObject.Test")
call objTest.PaintPage(server, session, request, response)

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

'// 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?

Thanks,

Kevin Baum

Sent via Deja.com
http://www.*-*-*.com/



Wed, 16 Jul 2003 04:52:13 GMT  
 ObjectContext vs. Passing ASP objects from ASP page
Definately Reference them from within the DLL

--
Cheers,

Greg Jackson MCSD, MCT
Sr. Software Engineer
STEP Technology
PDX, OR
http://www.steptech.com



Wed, 16 Jul 2003 06:39:14 GMT  
 ObjectContext vs. Passing ASP objects from ASP page
why?


Quote:
> Definately Reference them from within the DLL

> --
> Cheers,

> Greg Jackson MCSD, MCT
> Sr. Software Engineer
> STEP Technology
> PDX, OR
> http://www.steptech.com



Wed, 16 Jul 2003 07:10:08 GMT  
 ObjectContext vs. Passing ASP objects from ASP page
...because if they're not passed by reference, VB has to retrieve the
relevant context, and create 5 objects (session, application, response,
request and server), whereas if they're passed in it's a simple exchange of
addresses.


Quote:
> why?



> > Definately Reference them from within the DLL

> > --
> > Cheers,

> > Greg Jackson MCSD, MCT
> > Sr. Software Engineer
> > STEP Technology
> > PDX, OR
> > http://www.steptech.com



Sat, 19 Jul 2003 01:57:00 GMT  
 ObjectContext vs. Passing ASP objects from ASP page


Quote:
> ...because if they're not passed by reference, VB has to retrieve the
> relevant context, and create 5 objects (session, application, response,
> request and server), whereas if they're passed in it's a simple exchange
of
> addresses.

could u explain this a bit?


Sat, 19 Jul 2003 08:30:05 GMT  
 
 [ 5 post ] 

 Relevant Pages 

1. ObjectContext vs Passing ASP object to DLL

2. Passing Form Fields to VB.NET Custom Business Object in an ASP.NET Code Behind Page

3. Passing a collection object to a COM server from an ASP page

4. Passing an Array from a COM Object to an ASP Page

5. Passing Object Ref from asp page to com

6. Pass processing from asp page to COM object

7. How to pass connection object to asp page from VB

8. calling asp page from another asp page

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

10. Survey on ASP/VS6.0 versus ASP.NET/VS.NET

11. url encoding ASP vs ASP.net

12. VB6/ASP vs .NET/ASP.NET development

 

 
Powered by phpBB® Forum Software