- public string GetWebBrowserName()
- {
- string WebBrowserName = string.Empty;
- try
- {
- WebBrowserName = HttpContext.Current.Request.Browser.Browser;
- }
- catch (Exception ex)
- {
- throw new Exception(ex.Message);
- }
- return WebBrowserName;
- }
Subscribe to:
Post Comments (Atom)
Upload valid file in C#
protected bool CheckFileExtandLength(HttpPostedFile HtmlDocFile) { try { Dictionary<string, byte[]...
-
using Microsoft.Win32; using System; using System.Collections.Generic; using System.Management; using System.Net.NetworkInformation; using S...
-
Setting Header Programatically You can also set the cache headers programmatically. This can be useful for generated content and allows m...
-
DECLARE @TableName sysname ='Table name' DECLARE @Result varchar(max) = 'public class ' + @TableName + ' { ' SE...
No comments:
Post a Comment