Search code examples
javascriptvb.netbrowserrequestavailability

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?


Solution

  • ** 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