在ASP.NET中如何判断用户IE浏览器的版本_绿色软件之家

绿色软件之家:您身边最放心的安全下载站! 最新更新|软件分类|软件专题|手机版|论坛转贴|软件发布

您当前所在位置: 首页网络编程.Net编程 → 在ASP.NET中如何判断用户IE浏览器的版本

在ASP.NET中如何判断用户IE浏览器的版本

时间:2015-06-28 00:00:00 来源:绿色软件之家 作者:网管联盟 我要评论(2)

??? if?? (?? Request.Browser.MajorVersion?? ==?? 6?? )

??? {

??? // to do

??? }

??? ......................................................................................................................................

??? private?? void?? Page_Load(object?? sender,?? System.EventArgs?? e)

??? {

??? HttpBrowserCapabilities bc = new HttpBrowserCapabilities();

??? bc?? =?? Request.Browser;

??? Label1.text=bc.Platform?? +?? " 你的浏览器:"?? +?? bc.Type;

??? }

??? ......................................................................................................................................

??? HttpBrowserCapabilities?? bc?? =?? Request.Browser;

??? Response.Write("

浏览器属性:

");

??? Response.Write("浏览器型号?? =?? "?? +

??? bc.Type?? +?? "
");

??? Response.Write("浏览器名称 =?? "

??? +?? bc.Browser?? +?? "
");

??? Response.Write("浏览器版本?? =?? "?? +

??? bc.Version?? +?? "
");

??? Response.Write("主版本号?? =?? "?? +

??? bc.MajorVersion?? +?? "
");

??? Response.Write("从版本号?? =?? "?? +

??? bc.MinorVersion?? +?? "
");

??? Response.Write("操作系统?? =?? "?? +

??? bc.Platform?? +?? "
");

??? Response.Write("是否试用版?? =?? "?? +

??? bc.Beta?? +?? "
");

??? Response.Write("Is?? Crawler?? =?? "?? +

??? bc.Crawler?? +?? "
");

??? Response.Write("Is?? AOL?? =?? "?? +?? bc.AOL

??? + "
");

??? Response.Write("16位机?? =?? "?? +

??? bc.Win16?? +?? "
");

??? Response.Write("32位机?? =?? "?? +

??? bc.Win32?? +?? "
");

??? Response.Write("支持Frame?? =?? "?? +

??? bc.Frames?? +?? "
");

??? Response.Write("支持Table?? =?? "?? +

??? bc.Tables?? +?? "
");

??? Response.Write("支持Cookies?? =?? "?? +

??? bc.Cookies?? +?? "
");

??? Response.Write("支持VB?? Script?? =?? "?? +

??? bc.VBScript?? +?? "
");

??? Response.Write("支持?? JavaScript?? =?? "

??? +?? bc.JavaScript?? +?? "
");

??? Response.Write("支持?? Java?? Applets?? =

??? "?? +?? bc.JavaApplets?? +?? "
");

??? Response.Write("支持?? ActiveX

??? Controls?? =?? "?? +?? bc.ActiveXControls?? +?? "
");

??? Response.Write("电台CDF?? =?? "?? +

??? bc.CDF?? +?? "
");

??? Response.Write(Request.UserAgent);

??? Response.Write?? ("

??? language='javascript'>//读屏幕的大小screenWidth=screen.widt

??? h;screenHeight=screen.height;");

??? //屏幕分辨率的高:Response.Write

??? (window.screen.height);

??? //屏幕分辨率的宽:"+

??? window.screen.width;

??? //屏幕可用工作区高度:"+

??? window.screen.availHeight;

??? //屏幕可用工作区宽度:"+

??? window.screen.availWidth

关键词标签:ASP.NET,IE浏览器

相关阅读

文章评论
发表评论

热门文章 诛仙3飞升任务怎么做-诛仙3飞升任务流程最新2022 诛仙3飞升任务怎么做-诛仙3飞升任务流程最新2022 钟离圣遗物推荐-原神钟离圣遗物词条 钟离圣遗物推荐-原神钟离圣遗物词条 解决方法:应用程序“DEFAULT WEB SITE”中的服务器错误 解决方法:应用程序“DEFAULT WEB SITE”中的服务器错误 使用aspnet_regiis.exe 重新注册.NET Framework 使用aspnet_regiis.exe 重新注册.NET Framework

相关下载

    人气排行 诛仙3飞升任务怎么做-诛仙3飞升任务流程最新2022 asp.net表单提交方法GET\POST 在ASP.NET中如何判断用户IE浏览器的版本 Asp.net中messagebox的实现方法 Asp.net中的web.config配置 在ASP.NET MVC中实现大文件异步上传 asp.net获取URL和IP地址 FileUpload上传多文件出现错误的解决方法