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

Resetting IDENTITY Seed in Table Variable

For a "normal" table, you would use:  DBCC  CHECKIDENT( ' [table_name]' , RESEED, [new_reseed_value]). you cannot reseed...