Set Screen Resoution for ASP.NET 2.0 Application

Hello Experts,

I have a web application hosted on server, which looks fine on my machine(1920 X 1080), but all my customers have different screen resolutions, it doesn't fit properly on their computers.

I was using this JavaScript Function for screen resolution:

function expand()
        {  
            window.moveTo(0,0); window.resizeTo(screen.availWidth, screen.availHeight);
           
        }



And using expand() on page <body onload="expand()">, and it still doesn't work.



Please, its a production issue.

Thanks,
ASPDEV
ASPDEVAsked:
Who is Participating?
 
sybeConnect With a Mentor Commented:
Most people will hate it when you touch their browser windows. I do.
Especially because people have usually opened multiple tabs, and your scripts touches all tabs.

A browser as Firefox does not allow your script to run (by default).

The thing is that you have to make a design that looks fine for all your users (within reasonable limits). Yes, that can sometimes be a little hard.
0
 
Ramkisan JagtapLead DeveloperCommented:
its great that u are adjusting window width as per screen resolution, but it might not appling to other page controls so causing problem.
0
 
Big MontySenior Web Developer / CEO of ExchangeTree.org Commented:
you may be able to do this via jQuery, check out this thread:

http://stackoverflow.com/questions/1271675/jquery-screen-resolution-height-adjustment
0
 
ASPDEVAuthor Commented:
Thanks!
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.