我想在浏览器中加载网站后立即从浏览器中获取历史记录。它应该获取客户端的浏览器信息并将其保存在数据库中,以便管理员可以查看经常打开的网站,并可以对数据进行调查。
答案 0 :(得分:1)
System.Web.HttpBrowserCapabilities browser = Request.Browser;
string s = "Browser Capabilities\n"
+ "Type = " + browser.Type + "\n"
+ "Name = " + browser.Browser + "\n"
+ "Version = " + browser.Version + "\n"
+ "Major Version = " + browser.MajorVersion + "\n"
+ "Minor Version = " + browser.MinorVersion + "\n"
+ "Platform = " + browser.Platform + "\n"
+ "Is Beta = " + browser.Beta + "\n"
+ "Is Crawler = " + browser.Crawler + "\n"
+ "Is AOL = " + browser.AOL + "\n"
+ "Is Win16 = " + browser.Win16 + "\n"
+ "Is Win32 = " + browser.Win32 + "\n"
+ "Supports Frames = " + browser.Frames + "\n"
+ "Supports Tables = " + browser.Tables + "\n"
+ "Supports Cookies = " + browser.Cookies + "\n"
+ "Supports VBScript = " + browser.VBScript + "\n"
+ "Supports JavaScript = " +
browser.EcmaScriptVersion.ToString() + "\n"
+ "Supports Java Applets = " + browser.JavaApplets + "\n"
+ "Supports ActiveX Controls = " + browser.ActiveXControls
+ "\n";
Request.Browser
用于标识浏览器信息。使用此功能,您可以获取浏览器的所有信息
答案 1 :(得分:0)
IIS已经在为您存储此信息。请参阅:http://msdn.microsoft.com/en-us/library/ms525410%28v=vs.90%29.aspx
为了使这些数据有用,您需要使用Log Analyzer工具。
Google这个术语用于一些选项:iis日志分析器