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

Upload valid file in C#

    protected bool CheckFileExtandLength(HttpPostedFile HtmlDocFile)     {         try         {             Dictionary<string, byte[]>...