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

Search text in stored procedure in SQL Server

SELECT *   FROM   sys.procedures WHERE  Object_definition(object_id) LIKE '%keyword%'