Request Screen width and height in .NET code (21-feb-2013)

Getting the size of your screen is simple using javascript.

But at server-side, it's a little tricky.


The solution


We have created a file, we call it detect_screen.aspx

Request this file using a returnUrl parameter, like:


This file is using javascript to request screen parameters, and send it to it's self.

After collecting these parameters, it is being put into the session and a redirect will happen, back to index.aspx (this example)


Take a look at detect_screen.aspx.txt

Bekijk meer nieuws >>