What's the scenario? What if you are in a windows service, console, WPF or 
Windows 8 App?

Sent from my Windows Phone
________________________________
From: Anthony Mayan
Sent: Tuesday, September 13, 2011 8:08 PM
To: ozDotNet
Subject: Re: Detect whether asp.net or winform

yep..thats what i was thinking to do also...thanks

On Wed, Sep 14, 2011 at 12:55 PM, Raghu Rana 
<[email protected]<mailto:[email protected]>> wrote:
I suppose you can check in your class library if HttpContext.Current is null ?


On Wed, Sep 14, 2011 at 12:52 PM, Anthony Mayan 
<[email protected]<mailto:[email protected]>> wrote:
Is it possible to detect whether the code is runing on asp.net<http://asp.net/> 
or winforms from a class library?

Anthony



--
Raghu Rana
Mobile: +61 432 139 301<tel:%2B61%20432%20139%20301>
Email: [email protected]<mailto:[email protected]>

Reply via email to