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

New Post: Client's ScreenSize

$
0
0
Yes, I found some methods on StackOverflow, e. g. This one: http://stackoverflow.com/questions/14746564/asp-net-get-screen-width?rq=1
If I understand that right, the server receives the dimensions after the document ready event.
What I want to do is to pass the dimensions to the ShowMedia.ashx, which should resize the images to this dimensions and then send it to the client browser.
I thought there must be a solution that gets the Screen Size on Session Start and is available until the visitor leaves the site.
I could implement it in Default.aspx or Page.Aspx but I dont want to change the C1 Origin files.
However, thank you for response BurningIce.

Viewing all articles
Browse latest Browse all 2540

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>