Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Asp.Net Get Screen Width

Tags:

c#

asp.net

How can I get the screen width on the server side in an Asp.net (C#) project?

like image 508
John Avatar asked Nov 30 '22 04:11

John


1 Answers

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.

like image 199
TGlatzer Avatar answered Dec 05 '22 03:12

TGlatzer