Detect browser type and version
can use this class HttpBrowserCapabilities
You can use this class HttpBrowserCapabilities
// 要加上 using System.Web
HttpBrowserCapabilities hbc = Request.Browser;
Response.Write(hbc.Browser.ToString() + "
"); //取得浏览器名称
Response.Write(hbc.Version.ToString() + "
"); //取得浏览器版本号
Response.Write(hbc.Platform.ToString() + "
"); // 取得操作系统名称
Related Data:
HttpBrowserCapabilities members
HOW TO: detect the type of browser in ASP.NET Web pages
Original: big column detects the browser type and version