pourushsingh gaur pourushsingh gaur - 4 months ago 24
Vb.net Question

how to check browser's request in VB.NET

I need to check browser in

VB.NET
, so that I can use that in an
IF - ELSE
condition.

Something like this:

IF(!IE){//do this }.


Can anyone please help?

Answer

** Dim bc As HttpBrowserCapabilities = HttpContext.Current.Request.Browser**

I have used the above statement and that worked for me! As it was not finding the httpcontext I used the above statement. Thanks