Quantcast
Channel: C1 CMS Foundation - Open Source on .NET
Viewing all articles
Browse latest Browse all 2540

New Post: Client's ScreenSize

$
0
0
I have a solution - :)
made a JS, that executes on window load, gets the screen hight and width of the monitor, sends the data to a Webhandler (.ashx), via ajax as json datatype, the Webhandler stores the values in HttpContext.Session variables and can be retrieved were it is needed (e.g. in a .cshtml, or .aspx).

Viewing all articles
Browse latest Browse all 2540

Trending Articles