如何使用Asp.NET获取客户端屏幕宽度 [英] How to get the client screen width using Asp.NET

查看:90
本文介绍了如何使用Asp.NET获取客户端屏幕宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何使用Asp.NET使用C#代码获取客户端屏幕宽度,而不是JavaScript?

How to get the client screen width using Asp.NET using C# code, not the JavaScript?

推荐答案

您无法直接访问它(您不能可以访问服务器) - 你必须使用JS和C#的组合。

有一个讨论它应该有帮助:http://devcity.net/Articles/64/1/screenresolution.aspx [ ^ ]
You can't access it directly (you don't have access at the server) - you have to use a combination of JS and C#.
There is a discussion on it which should help here: http://devcity.net/Articles/64/1/screenresolution.aspx[^]


这篇关于如何使用Asp.NET获取客户端屏幕宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆