views:

62

answers:

1

I am developing a .net component. Is there any foolproof way of identifying whether a web application or a windows application is calling it?

+2  A: 

Check for

HttpContext.Current

which gets or sets the HttpContext object for the current HTTP request.

rahul
That's a good one!
DOK