How to fix resolution in ASP.NET? [modified]
-
How to fix resolution in ASP.NET for web pages? Thanks
modified on Monday, July 12, 2010 8:20 AM
Are you seriously asking to modify the client's screen resolution from ASP.NET? No, you can't do this. Explore your layout options. Look at relative CSS formatting (width: 80%; vs. width: 800px). At worst, discover the client's resolution and adjust. From http://particletree.com/features/dynamic-resolution-dependent-layouts/[^] In Javascript...
function getBrowserWidth(){
if (window.innerWidth){
return window.innerWidth;}
else if (document.documentElement && document.documentElement.clientWidth != 0){
return document.documentElement.clientWidth; }
else if (document.body){return document.body.clientWidth;}
return 0;
}Also find following links useful. http://devcity.net/Articles/64/1/screenresolution.aspx[^] HTH
Jinal Desai - LIVE Experience is mother of sage....