Re: Getting Appropriate Context????????????????

From: Marina (zlatkinam@nospam.hotmail.com)
Date: 08/28/02


From: "Marina" <zlatkinam@nospam.hotmail.com>
Date: Wed, 28 Aug 2002 15:48:15 -0400


If System.Web.HttpContext.Current is null, then its a windows app, otherwise
it's a web app.

"FOB" <fob_in_states@yahoo.com> wrote in message
news:eViTaksTCHA.3924@tkmsftngp12...
> Hi all,
> I m working on a DLL that can be used by both the web based clients (like
> ASP.NET pages, web services, etc) or could be consumed by WinForms based
> clients. Now I need to know whether there is any way knowing in which
> context I m running in? I mean if I my DLL is consumed by some aspx or
asmx
> page then I want to have access to some object that should give me access
to
> all the intrinsic objects (like Request, Response, Application, etc).
> Remember the old days of getting web context in our VB/VC dll through some
> interface. I need the equivalent in .NET.
>
> Any help will be appreciated.
>
> Thanks,
> FOB
>
>
>



Relevant Pages

  • Custom classes with web services
    ... I also have a Windows app that will reference a couple of web services. ... Each web service references the .dll to get the user class. ...
    (microsoft.public.dotnet.framework.aspnet.webservices)
  • Re: Keeping objects between requests within the same session
    ... I tried using that, but when working with my Windows App accessing the DLL, ... to initialize it, so to speak (I imagine this is explicitly doing what, in a ... > the current page request. ...
    (microsoft.public.dotnet.framework.aspnet)
  • TCP Address Question
    ... I have an ASP.net page that uses a dll to send a request via TCP ... The Windows app receives (TCPListener / TCPClient / XMLDeserialiser) ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: Sharing common code
    ... > I have two apps (one is a service and one is a windows app) that share some ... > common classes. ... > I've thought about making a DLL out the common class but 1) Don't know how ...
    (microsoft.public.dotnet.languages.vb)
  • Getting Appropriate Context????????????????
    ... I m working on a DLL that can be used by both the web based clients (like ... all the intrinsic objects. ... Remember the old days of getting web context in our VB/VC dll through some ...
    (microsoft.public.dotnet.framework.aspnet.security)

Loading