Re: Accessing intrinsic ASP (not ASP.NET) objects from .NET class
From: Alek Davis (alek_xDOTx_davis_xATx_intel_xDOTx_com)
Date: 07/01/04
- Next message: Magdelin: "Re: Converting XML spread*** to native Excel in ASP.NET"
- Previous message: Matt: "Visio 2003 ActiveX control and .Net web pages"
- In reply to: Kevin Spencer: "Re: Accessing intrinsic ASP (not ASP.NET) objects from .NET class"
- Next in thread: Kevin Spencer: "Re: Accessing intrinsic ASP (not ASP.NET) objects from .NET class"
- Reply: Kevin Spencer: "Re: Accessing intrinsic ASP (not ASP.NET) objects from .NET class"
- Messages sorted by: [ date ] [ thread ]
Date: Thu, 1 Jul 2004 13:00:32 -0700
Are you sure? Please excuse my ignorance, but logically, since the call is
made from an ASP application, shouldn't ASP info be presents on some level?
I mean, if I have a standard Win32 COM object, I can get IRequest info from
the application context (IObjectContext) obtained via GetObjectContext API.
Can't I do something similar from a .NET assembly, maybe via interop?
"Kevin Spencer" <kspencer@takempis.com> wrote in message
news:%237BU%23J6XEHA.2840@TK2MSFTNGP11.phx.gbl...
> Regardless of whather you can use the ASP Request COM object from a
wrapper,
> you still can't get into the ASP application space.
>
> --
> HTH,
> Kevin Spencer
> .Net Developer
> Microsoft MVP
> Big things are made up
> of lots of little things.
>
> "bruce barker" <nospam_brubar@safeco.com> wrote in message
> news:uxw2Pw5XEHA.3988@tk2msftngp13.phx.gbl...
> > the asp request object is a standard com object. you can create a .net
> > wrapper for it, or use the com interop library.
> >
> > -- bruce (sqlwork.com)
> >
> > "Alek Davis" <alek_xDOTx_davis_xATx_intel_xDOTx_com> wrote in message
> > news:OqSBDn5XEHA.1764@TK2MSFTNGP10.phx.gbl...
> > > Yeah, I understand that the ASP.NET Request object is useless in this
> > case,
> > > but I am wondering how to retrieve the Request from ASP. It is
> definitely
> > > available (at least internally, at some level), so there must be a way
> to
> > > get to it (hopefully). Maybe through interop or some hacking
technique?
> > Good
> > > info about pipes (thanks), I did not know that.
> > >
> > > "bruce barker" <nospam_brubar@safeco.com> wrote in message
> > > news:unNb8e5XEHA.2364@TK2MSFTNGP12.phx.gbl...
> > > > no. because your .net class is called from asp, not aspx, there is
no
> > .net
> > > > request object or stream.
> > > >
> > > > backgroup, in aspx, asp runs in a seperate process, and uses a named
> > pipes
> > > > to communicate to the iis process. the .net response object writes
to
> > this
> > > > pipe. obviously if you .net object is hosted by asp, this pipe does
> not
> > > > exist.
> > > >
> > > > you will need to add a method to you class where the asp can
register
> > the
> > > > com based Request object, so the .net code can talk to it.
> > > >
> > > > -- bruce (sqlwork.com)
> > > >
> > > >
> > > >
> > > > "Alek Davis" <alek_xDOTx_davis_xATx_intel_xDOTx_com> wrote in
message
> > > > news:%23TN3Br4XEHA.2812@TK2MSFTNGP11.phx.gbl...
> > > > > Hi,
> > > > >
> > > > > Is it possible to access intrinsic ASP objects, such as Request,
> from
> > a
> > > > .NET
> > > > > class. Say, I have a .NET library exposed via a COM or COM+
wrapper.
> > Can
> > > > > this library retrieve the request info (basically, server
variables
> > > > exposed
> > > > > via the Request object), when it is invoked from a traditional ASP
> > (not
> > > > > ASP.NET) application? Any ideas? Thanks in advance.
> > > > >
> > > > > Alek
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>
- Next message: Magdelin: "Re: Converting XML spread*** to native Excel in ASP.NET"
- Previous message: Matt: "Visio 2003 ActiveX control and .Net web pages"
- In reply to: Kevin Spencer: "Re: Accessing intrinsic ASP (not ASP.NET) objects from .NET class"
- Next in thread: Kevin Spencer: "Re: Accessing intrinsic ASP (not ASP.NET) objects from .NET class"
- Reply: Kevin Spencer: "Re: Accessing intrinsic ASP (not ASP.NET) objects from .NET class"
- Messages sorted by: [ date ] [ thread ]