Response.Write(Screen.PrimaryScreen.Bounds.Width.ToString()+"<br/>");
Response.Write(SystemInformation.PrimaryMonitorMaximizedWindowSize.Width.ToString() + "<br/>"); Response.Write(SystemInformation.PrimaryMonitorSize.Width.ToString() + "<br/>"); Response.Write(Screen.PrimaryScreen.WorkingArea.Width.ToString()+"</br>"); Response.Write(Screen.PrimaryScreen.Bounds.Width.ToString() + "</br>"); HttpBrowserCapabilities bc = Request.Browser; Response.Write(bc.ScreenPixelsWidth.ToString() +"</br>");这几个都用了 本地是好的 传服务器上就不对了http://www.5yumen.com/aa.aspx 脚本可以 但是脚本后执行 我里面调用不上 请帮忙 怎么求客户端分辨率
Response.Write(SystemInformation.PrimaryMonitorMaximizedWindowSize.Width.ToString() + "<br/>"); Response.Write(SystemInformation.PrimaryMonitorSize.Width.ToString() + "<br/>"); Response.Write(Screen.PrimaryScreen.WorkingArea.Width.ToString()+"</br>"); Response.Write(Screen.PrimaryScreen.Bounds.Width.ToString() + "</br>"); HttpBrowserCapabilities bc = Request.Browser; Response.Write(bc.ScreenPixelsWidth.ToString() +"</br>");这几个都用了 本地是好的 传服务器上就不对了http://www.5yumen.com/aa.aspx 脚本可以 但是脚本后执行 我里面调用不上 请帮忙 怎么求客户端分辨率
除非客户端用javascript提交给服务器端。
客户端是获取不到的使用activex
document.write(window.screen.width+ "x "+window.screen.height)
以前我作统计系统的时候也不知道asp.net 可以取得客户端信息。
后来为了作基于httpmodule 的统计的时候才发现Request.Browser下有很多属性。