Solved

Set Screen Resoution for ASP.NET 2.0 Application

Posted on 2011-09-27
4
244 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

On Demand Webinar - Networking for the Cloud Era

This webinar discusses:
-Common barriers companies experience when moving to the cloud
-How SD-WAN changes the way we look at networks
-Best practices customers should employ moving forward with cloud migration
-What happens behind the scenes of SteelConnect’s one-click button

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
JSON Error in ASP Page 3 37
Conformation code 4 35
Difference between Highcharts and Mapbox 10 44
Leaflet map example works but I want to make a change to it 5 25
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…
JavaScript can be used in a browser to change parts of a webpage dynamically. It begins with the following pattern: If condition W is true, do thing X to target Y after event Z. Below are some tips and tricks to help you get started with JavaScript …
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…

732 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