protected void Page_Load(object sender, EventArgs e)
{
HttpBrowserCapabilities browserInfo = Request.Browser;
Label1.Text = "Browser Type: " + browserInfo.Type + "<br />";
Label1.Text += "Browser Name: " + browserInfo.Browser + "<br />";
Label1.Text += "Browser Version: " + browserInfo.Version + "<br />";
Label1.Text += "Major Version: " + browserInfo.MajorVersion + "<br />";
Label1.Text += "Minor Version: " + browserInfo.MinorVersion + "<br />";
Label1.Text += "JavaScript Support: " + browserInfo.EcmaScriptVersion.ToString() + "<br />";
Label1.Text += "VBScript Support: " + browserInfo.VBScript + "<br />";
Label1.Text += "CSS Support: " + browserInfo.SupportsCss + "<br />";
Label1.Text += "Platform: " + browserInfo.Platform + "<br />";
Label1.Text += "Cookies Support: " + browserInfo.Cookies + "<br />";
Label1.Text += "Tables Support: " + browserInfo.Tables + "<br />";
Label1.Text += "Crawler: " + browserInfo.Crawler + "<br />";
Label1.Text += "Frame Support: " + browserInfo.Frames + "<br />";
Label1.Text += "ActiveXControl Support: " + browserInfo.ActiveXControls + "<br />";
}
{
HttpBrowserCapabilities browserInfo = Request.Browser;
Label1.Text = "Browser Type: " + browserInfo.Type + "<br />";
Label1.Text += "Browser Name: " + browserInfo.Browser + "<br />";
Label1.Text += "Browser Version: " + browserInfo.Version + "<br />";
Label1.Text += "Major Version: " + browserInfo.MajorVersion + "<br />";
Label1.Text += "Minor Version: " + browserInfo.MinorVersion + "<br />";
Label1.Text += "JavaScript Support: " + browserInfo.EcmaScriptVersion.ToString() + "<br />";
Label1.Text += "VBScript Support: " + browserInfo.VBScript + "<br />";
Label1.Text += "CSS Support: " + browserInfo.SupportsCss + "<br />";
Label1.Text += "Platform: " + browserInfo.Platform + "<br />";
Label1.Text += "Cookies Support: " + browserInfo.Cookies + "<br />";
Label1.Text += "Tables Support: " + browserInfo.Tables + "<br />";
Label1.Text += "Crawler: " + browserInfo.Crawler + "<br />";
Label1.Text += "Frame Support: " + browserInfo.Frames + "<br />";
Label1.Text += "ActiveXControl Support: " + browserInfo.ActiveXControls + "<br />";
}
No comments:
Post a Comment