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 15:33:48 -0400

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: PKZIPC, ASP and WSH
    ... does NOT wait for it to finish processing before completing the ASP page ... Go to Services control panel applet and change both the "IIS Admin ... make a request to your ASP page ... Dynamic File, Directly Executable -- these are CGI EXE and ISAPI DLLs ...
    (microsoft.public.scripting.wsh)
  • Re: Double click
    ... I have a form that folks use to report ... >> written with asp, and it submits to an asp page, and the results are ... > the user clicks the submit button a second time, before the first request ... > been received by the server. ...
    (microsoft.public.inetserver.asp.db)
  • Re: Using Javascript to branch from one asp page to another and return
    ... It is not vbscript or ASP that is your problem. ... The browser sends a request and the server returns a response. ... If you want to have form2 ask the question and trigger form3 on the server ... You could have javascript send ...
    (microsoft.public.inetserver.asp.general)
  • Re: HttpContext.Current returns null
    ... Nicholas -- ... Yes, the OP could pass the intrinsic Request, Response, etc, etc ... looking to get the intrinsic objects from the static Current property on ... In classic ASP the solution I ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: WriteFile buffers in memory
    ... > you are stuck tying up a couple threads per request. ... > 2) iis run an isapi filter that handles asp.net pages ... > 5) the asp.net worker process keeps a pool of threads to actually process ... >> an ASP page is so I can start the reading at a particular offset. ...
    (microsoft.public.dotnet.framework.aspnet)