Simple, but I was looking for something a little more behind the scenes. This
is especially true as you get deeper into a library. You don't want to have
keep passing around a boolean to all your layers just to know the calling
context. The only solution that I could come up with is to test if the
HttpContext.Current is set to nothing or not. If is nothing, then I assume
that I am running under Windows. If is has a value, I assume that I am
running under APS.NET. I just don't know if this realiable or not. I've been
searching for a WindowsContext object or similiar object that is only present
when the caller if coming from a Window's client.
"Cor Ligthert" wrote:
David,
Pass a boolean for that.
Just my thought,
Cor