Asp.Net获取屏幕宽度 [英] Asp.Net Get Screen Width
本文介绍了Asp.Net获取屏幕宽度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我怎样才能在服务器端的屏幕宽度在Asp.net(C#)项目?
How can I get the screen width on the server side in an Asp.net (C#) project?
推荐答案
您可以用JavaScript读它,并将结果提交给服务器。结果
服务器端,唯一的解决办法就不能存在,因为HTML不要求自动提交这些数据。
You could read it with javascript and submit the results to the server.
A server-side-only solution can not exist, since html does not submit such data automatically in requests.
这篇关于Asp.Net获取屏幕宽度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文