zoukankan      html  css  js  c++  java
  • 取得浏览器信息

    在msdn上找到的,贴出来记录一下。
    HttpBrowserCapabilities bc = Request.Browser;
     Response.Write("<p>Browser Capabilities:</p>");
     Response.Write("Type = " + bc.Type + "<br>");
     Response.Write("Name = " + bc.Browser + "<br>");
     Response.Write("Version = " + bc.Version + "<br>");
     Response.Write("Major Version = " + bc.MajorVersion + "<br>");
     Response.Write("Minor Version = " + bc.MinorVersion + "<br>");
     Response.Write("Platform = " + bc.Platform + "<br>");
     Response.Write("Is Beta = " + bc.Beta + "<br>");
     Response.Write("Is Crawler = " + bc.Crawler + "<br>");
     Response.Write("Is AOL = " + bc.AOL + "<br>");
     Response.Write("Is Win16 = " + bc.Win16 + "<br>");
     Response.Write("Is Win32 = " + bc.Win32 + "<br>");
     Response.Write("Supports Frames = " + bc.Frames + "<br>");
     Response.Write("Supports Tables = " + bc.Tables + "<br>");
     Response.Write("Supports Cookies = " + bc.Cookies + "<br>");
     Response.Write("Supports VB Script = " + bc.VBScript + "<br>");
     Response.Write("Supports JavaScript = " + bc.JavaScript + "<br>");
     Response.Write("Supports Java Applets = " + bc.JavaApplets + "<br>");
     Response.Write("Supports ActiveX Controls = " + bc.ActiveXControls + "<br>");
     Response.Write("CDF = " + bc.CDF + "<br>");

  • 相关阅读:
    000_linux之Ubuntu安装
    001_linux基础命令
    018_linux驱动之_阻塞和非阻塞
    019_linux驱动之_定时器的引入
    017_linux驱动之_信号量
    016_linux驱动之_原子操作
    python logging模块整理
    python sys与shutil模块
    python configparser模块
    python os模块
  • 原文地址:https://www.cnblogs.com/zhuor/p/507583.html
Copyright © 2011-2022 走看看