Solved

Set Screen Resoution for ASP.NET 2.0 Application

Posted on 2011-09-27
4
245 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

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 discusses how to create an extensible mechanism for linked drop downs.
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…

689 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