時(shí)間:2015-06-28 00:00:00 來(lái)源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評(píng)論(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("瀏覽器型號(hào)?? =?? "?? +
??? bc.Type?? +?? "
");
??? Response.Write("瀏覽器名稱 =?? "
??? +?? bc.Browser?? +?? "
");
??? Response.Write("瀏覽器版本?? =?? "?? +
??? bc.Version?? +?? "
");
??? Response.Write("主版本號(hào)?? =?? "?? +
??? bc.MajorVersion?? +?? "
");
??? Response.Write("從版本號(hào)?? =?? "?? +
??? bc.MinorVersion?? +?? "
");
??? Response.Write("操作系統(tǒng)?? =?? "?? +
??? bc.Platform?? +?? "
");
??? Response.Write("是否試用版?? =?? "?? +
??? bc.Beta?? +?? "
");
??? Response.Write("Is?? Crawler?? =?? "?? +
??? bc.Crawler?? +?? "
");
??? Response.Write("Is?? AOL?? =?? "?? +?? bc.AOL
??? + "
");
??? Response.Write("16位機(jī)?? =?? "?? +
??? bc.Win16?? +?? "
");
??? Response.Write("32位機(jī)?? =?? "?? +
??? 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("電臺(tái)CDF?? =?? "?? +
??? bc.CDF?? +?? "
");
??? Response.Write(Request.UserAgent);
??? Response.Write?? ("");
??? //屏幕分辨率的高:Response.Write
??? (window.screen.height);
??? //屏幕分辨率的寬:"+
??? window.screen.width;
??? //屏幕可用工作區(qū)高度:"+
??? window.screen.availHeight;
??? //屏幕可用工作區(qū)寬度:"+
??? window.screen.availWidth
關(guān)鍵詞標(biāo)簽:ASP.NET,IE瀏覽器
相關(guān)閱讀
熱門文章 誅仙3飛升任務(wù)怎么做-誅仙3飛升任務(wù)流程最新2022 鐘離圣遺物推薦-原神鐘離圣遺物詞條 解決方法:應(yīng)用程序“DEFAULT WEB SITE”中的服務(wù)器錯(cuò)誤 使用aspnet_regiis.exe 重新注冊(cè).NET Framework
人氣排行 誅仙3飛升任務(wù)怎么做-誅仙3飛升任務(wù)流程最新2022 asp.net表單提交方法GET\POST 在ASP.NET中如何判斷用戶IE瀏覽器的版本 Asp.net中messagebox的實(shí)現(xiàn)方法 Asp.net中的web.config配置 在ASP.NET MVC中實(shí)現(xiàn)大文件異步上傳 asp.net獲取URL和IP地址 FileUpload上傳多文件出現(xiàn)錯(cuò)誤的解決方法