Re: How to distinguish WinForms from ASP .NET?

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance



"Nikolay Petrov" <johntup2@xxxxxxx> schrieb:
I have compiled some shared function in a lybrary, which I use in
various application from asp pages, web services to winforms and
windows services.

some of the functionality in my libarary is dependent on where it is
called from. I would like to do one things if it is called from asp
application, and other if it is called from WinForms app.

Is there a way, I can distinguish where me library functions are called
from?

I have never tested it, but I am curious what 'Assembly.GetEntryAssembly' returns for ASP.NET applications.


--
M S Herfried K. Wagner
M V P <URL:http://dotnet.mvps.org/>
V B <URL:http://classicvb.org/petition/>


.



Relevant Pages

  • How to distinguish WinForms from ASP .NET?
    ... web services to winforms and ... windows services. ... I would like to do one things if it is called from asp ... and other if it is called from WinForms app. ...
    (microsoft.public.dotnet.languages.vb)
  • Re: Separating UI logic & program logic
    ... logic by putting it into a separate DLL, but you can of course do that ... functionality described here, it would be a very bad idea not to. ... A well written set of program logic should be be able to have a ... from web services to provide the functionality to an iPhone or ...
    (microsoft.public.dotnet.languages.csharp)
  • Re: SOA and its real state of the art
    ... function and some parameter data in an xml document and fire it off ... It's important to realize that Web Services and SOA are not ... Functionality is exposed as a set of services. ...
    (comp.object)
  • Re: no Web Services Extension
    ... Web Service Extensions is ... I installed IIS on a computer running Windows NT 2000. ... ASP, ASP.NET are disabled. ... Trouble is, when I expand the local computer, there is no Web Services ...
    (microsoft.public.inetserver.iis)
  • RE: WSE3: authentication problem
    ... So in the winforms I get the currently logged in user and set ... the web services credentials like this: ... protected override string AuthenticateToken(UsernameToken userName) ... Where MyUser is: ...
    (microsoft.public.dotnet.framework.webservices.enhancements)