数模论坛

 找回密码
 注-册-帐-号
搜索
热搜: 活动 交友 discuz
查看: 3322|回复: 1

[转贴]浏览器探针C#版(摘自MSDN)

[复制链接]
发表于 2003-7-21 02:04:45 | 显示全部楼层 |阅读模式
浏览器探针C#版(摘自MSDN)
System.Web.HttpBrowserCapabilities browser = Request.Browser;
string s = "Browser Capabilities<br>"
+ "Type = " + browser.Type + "<br>"
+ "Name = " + browser.Browser + "<br>"
+ "Version = " + browser.Version + "<br>"
+ "Major Version = " + browser.MajorVersion + "<br>"
+ "Minor Version = "  + browser.MinorVersion + "<br>"
+ &quotlatform = " + browser.Platform + "<br>"
+ "Is Beta = " + browser.Beta + "<br>"
+ "Is Crawler = " + browser.Crawler + "<br>"
+ "Is AOL = "  + browser.AOL + "<br>"
+ "Is Win16 = " + browser.Win16 + "<br>"
+ "Is Win32 = " + browser.Win32 + "<br>"
+ "Supports Frames = " + browser.Frames + "<br>"
+ "Supports Tables = " + browser.Tables + "<br>"
+ "Supports Cookies = " + browser.Cookies + "<br>"
+ "Supports VBScript = " + browser.VBScript + "<br>"
+ "Supports javascript = " + browser.javascript + "<br>"
+ "Supports Java Applets = " + browser.JavaApplets + "<br>"
+ "Supports ActiveX Controls = " + browser.ActiveXControls + "<br>";
Response.Write(s);   
   
发表于 2003-7-22 21:37:10 | 显示全部楼层

多谢管理员为我们拓宽知识面
您需要登录后才可以回帖 登录 | 注-册-帐-号

本版积分规则

小黑屋|手机版|Archiver|数学建模网 ( 湘ICP备11011602号 )

GMT+8, 2024-11-30 10:52 , Processed in 0.104174 second(s), 18 queries .

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表