Re: Accessing intrinsic ASP (not ASP.NET) objects from .NET class

From: Kevin Spencer (kspencer_at_takempis.com)
Date: 07/01/04


Date: Thu, 1 Jul 2004 16:47:12 -0400

You might possibly be able to poke around in memory using pointers and API
calls. Seems like going the long (and dangerous) way round, though. I would
think using Message Queuing would be much simpler and safer.

-- 
HTH,
Kevin Spencer
.Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
"Alek Davis" <alek_xDOTx_davis_xATx_intel_xDOTx_com> wrote in message
news:exM8SY6XEHA.2944@TK2MSFTNGP11.phx.gbl...
> 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
> > > > > >
> > > > > >
> > > > >
> > > > >
> > > >
> > > >
> > >
> > >
> >
> >
>
>


Relevant Pages

  • Re: Parameter passing query
    ... Kevin Spencer ... Microsoft MVP ... >>> I've developed a ASP page that searches a database on our web server. ...
    (microsoft.public.frontpage.programming)
  • Re: Knotty problem ?
    ... Kevin Spencer ... I have .asp pages in FrontPage ... >> linked to an Access database. ... >> This to avoid that the user will have to retype the Course Code in the ...
    (microsoft.public.frontpage.programming)
  • Re: Upload image into SQL Server database
    ... "Kevin Spencer" wrote in message ... You would have to know> ASP, ASP.Net or some other server-side programming technology to do it. ... You can build a data> entry form that inserts data into a database. ... >>> Microsoft MVP ...
    (microsoft.public.frontpage.programming)
  • Re: Can ASP determine users SharePoint Login ID?
    ... I don't know why Kevin Spencer is so single minded on this issue because its ... correct that ASP can not be used to grab the UserID "directly" but if you ... have access to the SharePoint WebPart that does the form validation (which ... Show me your certification without works, ...
    (microsoft.public.frontpage.programming)
  • Re: Frontpage-Desktop-Engine-SQL
    ... "Kevin Spencer" wrote in message ... > in your office to be able to use it in a web site that they are publishing ... > get an error, either during publishing, or when running the ASP page (you ...
    (microsoft.public.frontpage.programming)