使用Request获取浏览器以及操作系统信息

Laughing
2018-03-10 / 0 评论 / 1,278 阅读 / 搜一下 / 正在检测是否收录...
        string name = Request.Browser.Browser;  
        string type = Request.Browser.Type;  
        string version = Request.Browser.Version;  
        string os = Request.Browser.Platform;  
        string isSupportFramework = Request.Browser.Frames.ToString();  
        string isSupportTable = Request.Browser.Tables.ToString();  
        string isSupportCookie = Request.Browser.Cookies.ToString();  
        string strInfo = name + "<br/>" + type + "<br/>" + version+"<br/>"+os+"<br/>"+isSupportFramework;  
        Response.Write(strInfo);
0

评论 (0)

取消
  1. 头像
    Ju
    MacOS · Google Chrome

    很好啊,感谢

    回复
  2. 头像
    Laughing 作者
    iPhone · Safari
    @ asd

    能用

    回复