Solved

Set Screen Resoution for ASP.NET 2.0 Application

Posted on 2011-09-27
4
242 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
ID: 36710168
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 33

Expert Comment

by:Big Monty
ID: 36710344
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
ID: 36716391
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
ID: 36996651
Thanks!
0

Featured Post

Announcing the Most Valuable Experts of 2016

MVEs are more concerned with the satisfaction of those they help than with the considerable points they can earn. They are the types of people you feel privileged to call colleagues. Join us in honoring this amazing group of Experts.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Title # Comments Views Activity
jQuery Dialog Autoresize Bug 2 24
Filktering Alphabetically 8 29
Javascript 2 20
Possible propagation problem 1 21
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…
This article demonstrates how to create a simple responsive confirmation dialog with Ok and Cancel buttons using HTML, CSS, jQuery and Promises
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…

840 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