Monday, 12 December 2016

Get Web Browser Name In C#

  1. public string GetWebBrowserName()  
  2.     {  
  3.         string WebBrowserName = string.Empty;  
  4.         try  
  5.         {  
  6.             WebBrowserName = HttpContext.Current.Request.Browser.Browser;  
  7.         }  
  8.         catch (Exception ex)  
  9.         {  
  10.             throw new Exception(ex.Message);  
  11.         }  
  12.         return WebBrowserName;  
  13.     }  

No comments:

Post a Comment

STEPS TO SAVE YOUR EYES WHILE WORKING ON COMPUTER

STEPS TO SAVE YOUR EYES WHILE WORKING ON COMPUTER This is the report for all you people who works more and more on computer for long t...