Solved

Set Screen Resoution for ASP.NET 2.0 Application

Posted on 2011-09-27
4
232 Views
Last Modified: 2012-06-21
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
0
Comment
Question by:ASPDEV
4 Comments
 
LVL 12

Expert Comment

by:Ramkisan Jagtap
Comment Utility
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
 
LVL 32

Expert Comment

by:Big Monty
Comment Utility
you may be able to do this via jQuery, check out this thread:

http://stackoverflow.com/questions/1271675/jquery-screen-resolution-height-adjustment
0
 
LVL 28

Accepted Solution

by:
sybe earned 500 total points
Comment Utility
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
 

Author Closing Comment

by:ASPDEV
Comment Utility
Thanks!
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

The task A number given should be formatted for easy reading by separating digits into triads. Format must be made inline via JavaScript, i.e., frameworks / functions are not welcome. So let’s take a number like this “12345678.91¿ and format i…
Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
The viewer will learn the basics of jQuery, including how to invoke it on a web page. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery.: (CODE)
The viewer will learn the basics of jQuery including how to code hide show and toggles. Reference your jQuery libraries: (CODE) Include your new external js/jQuery file: (CODE) Write your first lines of code to setup your site for jQuery…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now