M
Mate
How to get browser width and height by C# or VB code in ASP.NET page?
bruce barker said:this is done with javascript, then the results must be posted back to the
server usually in hidden fields. you can render a "sniffer" page that auto
postbacks. the actual javascript code depends on the browser:
var width = window.innerWidth
|| document.documentElement.clientWidth
|| document.body.clientWidth;
var height = window.innerHeight
|| document.documentElement.clientHeight
|| document.body.clientHeight;