silverlight 用户浏览器未安装SL插件问题
2014-07-10 18:07
239 查看
1.在Silverlight启动页面
View Code
using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Web.UI; using System.Web.UI.WebControls; namespace SilverlightApplication9.Web { public partial class DownloadSilverlight : System.Web.UI.Page { protected void Page_Load(object sender, EventArgs e) { //string info = "客户端IP:" + Page.Request.UserHostAddress; //info += "<br/>用户信息:" + Page.User; //info += "<br/>服务器电脑名称:" + Page.Server.MachineName; //info += "<br/>当前用户电脑名称:" + System.Net.Dns.GetHostName(); //info += "<br/>当前电脑名:" + System.Environment.MachineName; //info += "<br/>当前电脑所属网域:" + System.Environment.UserDomainName; //info += "<br/>当前电脑用户:" + System.Environment.UserName; //info += "<hr/>"; //info += "<br/>浏览器类型:" + Request.Browser.Browser; //info += "<br/>浏览器标识:" + Request.Browser.Id; //info += "<br/>浏览器版本号:" + Request.Browser.Version; //info += "<br/>浏览器是不是测试版本:" + Request.Browser.Beta; ////info += "<br/>浏览器的分辨率(像素):" + Request["width"].ToString() + "*" + Request["height"].ToString();//1280/1024 //info += "<hr/>"; //info += "<br/>客户端的操作系统:" + Request.Browser.Platform; //info += "<br/>是不是win16系统:" + Request.Browser.Win16; //info += "<br/>是不是win32系统:" + Request.Browser.Win32; //Response.Write(info); //int loop1, loop2; //NameValueCollection coll; //// Load ServerVariable collection into NameValueCollection object. //coll = Request.ServerVariables; //// Get names of all keys into a string array. //String[] arr1 = coll.AllKeys; //for (loop1 = 0; loop1 < arr1.Length; loop1++) //{ // Response.Write("Key: " + arr1[loop1] + "<br>"); // String[] arr2 = coll.GetValues(arr1[loop1]); // for (loop2 = 0; loop2 < arr2.Length; loop2++) // { // Response.Write("Value " + loop2 + ": " + Server.HtmlEncode(arr2[loop2]) + "<br>"); // } //} //Response.End(); if (Request.ServerVariables["HTTP_USER_AGENT"].ToString().Contains("WOW64")) { Response.Redirect("/Silverlight/Silverlight_x64.exe"); } else { Response.Redirect("/Silverlight/Silverlight.exe"); } } } }
View Code
相关文章推荐
- 解决Silverlight插件过长浏览器滚动条不出现的问题
- 检查浏览器是否安装silverlight插件
- javascript判断用户浏览器插件安装情况的代码
- there are no packages available for installation插件安装问题和如何配置浏览器的快捷键
- javascript判断用户浏览器插件安装情况的代码
- 给谷歌 浏览器安装Chrome-Charset 插件解决数据输出乱码问题
- 关于Silverlight安装问题之三
- 金山打字通WINDOWS XP及WINDOWS 2003下安装后普通用户无法使用的问题
- 域客户端或xp-sp1 users用户无法安装打印机问题?"
- Web Application Project插件的安装问题
- 关于Silverlight安装问题之二
- 大家调试ZEND的时候应该会用到zend studio,不知道是不是中国购买zend产品的用户太少了还是我安装的问题,
- eclipse中安装入插件后不能用的问题
- eclipes lomboz插件安装时值得注意的小问题
- 禁用页面缓存。目的:用户登录后退出。点击浏览器后退按钮造成的问题
- 关于Silverlight安装问题之一
- 错误2203,安装中的用户权限问题
- eclipse插件无法安装的问题解决
- Eclipse安装MyEclipse后,新插件无法识别问题解决
- 解决eclipse安装插件时出现重复安装错误问题的小插件