How to get client Screen Resolution Width/Height at Server Side

后端 未结 2 1255
刺人心
刺人心 2021-01-20 13:17

I can get client screen resolution using client side script \'javascript\',

but I dont want to do that.

I also tried Request.Browser.ScreenPixelsWidth<

2条回答
  •  爱一瞬间的悲伤
    2021-01-20 14:11

    Information such as client screen resolution is never sent to the server in the HTTP request so you may forget about it. The only way is to use javascript and then pass this information to the server (AJAX, form post, link, ...). You could also use some proprietary browser plugin like Flash, Silverlight, Java Applet, ActiveX, ...

提交回复
热议问题