360和IE 同一内核 如何区分? 我现在在系统中只想用户使用IE 当 使用其他浏览器时给予提示?如何做到! 大虾们 help me
解决方案 »
- 急,在线等待。本地调试ASP.NET程序报这个错误:System.Data.OracleClient 需要 Oracle 客户端软件 8.1.7 或更高版本。
- 怎么实现鼠标拖拉图片或文件添加啊
- 谁有Monorail最新的中文教程呀?
- 请问用Socket获取一个验证码输出网页,怎么把图片部分弄出来?
- new关键字
- 如何关闭启动窗体而又不退出程序
- [已经连续第三贴]如何用程序进行Asp.Net登录?
- 在vb.net中使用的替换变量如何在c#中实现
- 有关线程的一个问题,求高手给看看,怎么实现这一效果
- 如何取得当前windows得分辨率
- 其页面查询某个时间段的问题
- 请问下如何在按下BUUTON1后,时间的年的值显示给LABEL1?(初学的)
Request.Browser.Platform.ToString();//获取客户端使用平台的名字
Request.UserHostAddress.ToString(); //获取远程客户端主机IP HttpRequest.Url 获取有关当前请求的 URL 的信息。
HttpRequest.UrlReferrer 获取有关客户端上次请求的 URL 的信息,该请求链接到当前的 URL。
HttpRequest.UserAgent 获取客户端浏览器的原始用户代理信息。
HttpRequest.UserHostAddress 获取远程客户端的 IP 主机地址。
HttpRequest.UserHostName 获取远程客户端的 DNS 名称。
HttpRequest.UserLanguages 获取客户端语言首选项的排序字符串数组。System.Text.StringBuilder strLabel = new System.Text.StringBuilder();
HttpBrowserCapabilities bc = Request.Browser;
strLabel.Append("您的浏览器的分辨率为:");
strLabel.Append(Request.Form["WidthPixel"]);
strLabel.Append("×");
strLabel.Append(Request.Form["HeightPixel"]);
strLabel.Append("");
strLabel.Append("浏览器基本信息:");
strLabel.Append("Type = " + bc.Type + "");
strLabel.Append("Name = " + bc.Browser + "");
strLabel.Append("Version = " + bc.Version +"");
strLabel.Append("Major Version = " + bc.MajorVersion + "");
strLabel.Append("Minor Version = " + bc.MinorVersion + "");
strLabel.Append("Platform = " + bc.Platform + "");
strLabel.Append("Is Beta = " + bc.Beta + "");
strLabel.Append("Is Crawler = " + bc.Crawler + "");
strLabel.Append("Is AOL = " + bc.AOL + "");
strLabel.Append("Is Win16 = " + bc.Win16 + "");
strLabel.Append("Is Win32 = " + bc.Win32 + "");
strLabel.Append("支持 Frames = " + bc.Frames + "");
strLabel.Append("支持 Tables = " + bc.Tables + "");
strLabel.Append("支持 Cookies = " + bc.Cookies + "");
strLabel.Append("支持 VB Script = " + bc.VBScript + "");
strLabel.Append("支持 JavaScript = " + bc.JavaScript + "");
strLabel.Append("支持 Java Applets = " + bc.JavaApplets + "");
strLabel.Append("支持 ActiveX Controls = " + bc.ActiveXControls + "");
strLabel.Append("CDF = " + bc.CDF + "");
strLabel.Append("W3CDomVersion = " + bc.W3CDomVersion.ToString() + "");
strLabel.Append("UserAgent = " + Request.UserAgent + "");
strLabel.Append("UserLanguages = " + Request.UserLanguages[0].ToString() + "");
strLabel.Append("");
strLabel.Append("客户端计算机基本配置:");
strLabel.Append("UserHostName = " + Request.UserHostName + "");
strLabel.Append("UserHostAddress = " + Request.UserHostAddress + "");
strLabel.Append("PDF 6.0 插件是否安装 = " + Request.Form["PDF"] + "");
Label1.Text = strLabel.ToString();
}
}