I want to get HTML height and width for given url. I am using visual studio 2008 and this is for asp.net application.
I have no idea how to do it. I am looking for some method calculate and return width and height of the browser window that would fit the WHOLE content.
please help!
Thanks
You don’t want to do what you think you want to do.
I think your real question is “how do I make my webpage fit properly in the browser?” The answer is to scale and adjust your page on the client-side with Javascript and CSS rather than to change things on the server-side. A well written webpage will resize itself if the user resizes the browser. It shouldn’t have to do a postback to the server to adjust its size.