473,385 Members | 1,320 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,385 software developers and data experts.

screen resolution in asp.net

I have created an asp.net app on my machine where the resolution is
set to 1280 x 1024. When my users view the form on their screen, some
of the controls display differently than on my screen. One solution I
have is to use some javascript to determine the resolution of their
screen and redirect them to a duplicate form suited better for their
resolution but I would have to maintain multiple forms. Anybody know
of a better way to handle resolution problems in asp.net? Thanks in
advance

-Rob
Nov 18 '05 #1
7 9902
depending upon how long one has been coding on the web, you do face the
problem. There are a couple of ways.

a. Fix the minimum size at one point a good few years back 800x600 was
optimum for general viewing.
what you would do is fix the size of the table and that would control
whether you get scrollbars or you dont. and how and where everything is
placed.
b. You could also use percentages the only problem being that it will look
different on different resolutions.
c. you could set the parameters witdh programmatically by detecting the user
screen settings.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Robert Bull" <ro*********@wbp.org> wrote in message
news:bf**************************@posting.google.c om...
I have created an asp.net app on my machine where the resolution is
set to 1280 x 1024. When my users view the form on their screen, some
of the controls display differently than on my screen. One solution I
have is to use some javascript to determine the resolution of their
screen and redirect them to a duplicate form suited better for their
resolution but I would have to maintain multiple forms. Anybody know
of a better way to handle resolution problems in asp.net? Thanks in
advance

-Rob

Nov 18 '05 #2
Hi Rob,

Maybe this free control will help you?

http://www.metabuilders.com/Tools/ResizeMonitor.aspx

"Robert Bull" <ro*********@wbp.org> wrote in message
news:bf**************************@posting.google.c om...
I have created an asp.net app on my machine where the resolution is
set to 1280 x 1024. When my users view the form on their screen, some
of the controls display differently than on my screen. One solution I
have is to use some javascript to determine the resolution of their
screen and redirect them to a duplicate form suited better for their
resolution but I would have to maintain multiple forms. Anybody know
of a better way to handle resolution problems in asp.net? Thanks in
advance

-Rob


Nov 18 '05 #3
> a. Fix the minimum size at one point a good few years back 800x600 was
optimum for general viewing.
A fixed size is ok, but there's really no such thing as 'opimum' size.
Browser viewports can vary wildely from the PDA user to the high-res
maximized browser user to the multi-screened, multi-browser poweruser.
c. you could set the parameters witdh programmatically by detecting the user screen settings.


Detect the browser viewport size...screen size won't tell you how big their
browser viewport actually is.

-Darrel
Nov 18 '05 #4
> One solution I
have is to use some javascript to determine the resolution of their
screen and redirect them to a duplicate form
Screen resolution has nothing to do with the size of a web page. The size of
the web page is based on the size of the web browser's viewport. This
doesn't have a direct correlation to screen resolution unless you can
guarantee that all users will be browser with their browser maximized on a
desktop computer without their bookmarks/history pane open.

Which is hard to do.
Anybody know
of a better way to handle resolution problems in asp.net?


It's not really an ASP.net issue...it's a general web design issue. Whenever
you can, don't design for any specific size. Use a fluid/liquit layout and
let the end-user make the decision.

-Darrel
Nov 18 '05 #5
you also have to handle the system font size. to see this, on your machine
go into display properties, under advanced, select large fonts.

you should use flow layout, and design to a resonable size, say 800x600

-- bruce (sqlwork.com)
"Robert Bull" <ro*********@wbp.org> wrote in message
news:bf**************************@posting.google.c om...
I have created an asp.net app on my machine where the resolution is
set to 1280 x 1024. When my users view the form on their screen, some
of the controls display differently than on my screen. One solution I
have is to use some javascript to determine the resolution of their
screen and redirect them to a duplicate form suited better for their
resolution but I would have to maintain multiple forms. Anybody know
of a better way to handle resolution problems in asp.net? Thanks in
advance

-Rob

Nov 18 '05 #6
"darrel" <no*****@hotmail.com> wrote in message
news:eH**************@TK2MSFTNGP11.phx.gbl...
a. Fix the minimum size at one point a good few years back 800x600 was
optimum for general viewing.
A fixed size is ok, but there's really no such thing as 'opimum' size.
Browser viewports can vary wildely from the PDA user to the high-res
maximized browser user to the multi-screened, multi-browser poweruser.


If you read my post carefully... i said a few years back. There were hardly
any PDAs. So all you programmed for was normal pcs.
Yes you could have people with 1600x1200 res and 21inch monitors but how
many of them will you find ? By Optimum i mean something that used to go
with majority of web users at that point.
c. you could set the parameters witdh programmatically by detecting the

user
screen settings.


Detect the browser viewport size...screen size won't tell you how big

their browser viewport actually is.
Yes there are a lot of other things to consider but it gives you a rough
estimate.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)

-Darrel

Nov 18 '05 #7
> By Optimum i mean something that used to go
with majority of web users at that point.
I understand. My point is that screen resolution doesn't correlate directly
with browser viewport size.
Yes there are a lot of other things to consider but it gives you a rough
estimate.


I find it a red herring type of statistic that slowly become sort of a
believable urban legend...that everyone browses the internet on a desktop PC
with a monitor set to 600x800 using Internet Explorer on Windows with a
maximized window and no extra panes or toolbars showing and these three
fonts installed and have 20/20 vistion and...

The above sounds logical. You'd think, yea, I suppose most people would do
that. But once you begin thinking that, you're not thinking in the context
of the web anymore. You're thinking about a fixed, consistent canvas. And
the web simply isn't a fixed, consistant canvas.

So I usually try to knock that line of thinking out of a web developers head
as soon as I can. ;o)

Once a developer understands that, then it becomes much easier to know when
it is OK to make a fixed size interface...typically when developing a web
application targetted at a specific audience...and they become much more
cogniscant of the fact that web design is much more about suggestiong things
than dictating things to the end user. ;o)

-Darrel
Nov 18 '05 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: ZaGras | last post by:
when my vb program run on another computer instead of my computer, the user interface is biggger..this is because of the screen resolution... anyone know how to solve pls?
5
by: Chris | last post by:
After exhausting my search on the MS website, I can't find a straight answer. I fin dit hard to believe that MS left our something so useful in ASP.NET as screen resolution detection. Problem:...
4
by: pjac | last post by:
I need some help with some VB language that will change the screen resolution on a monitor when a MS-Access 2000 database is opened from 1024 x 768 to 800 x 600. Any help with this effort would be...
1
by: fabrice | last post by:
Hi, I'm trying to get the screen resolution of the client and to realize a treatment in code behind. it seem to be hard. I can get information about the resolution with this following sub,...
6
by: Darian | last post by:
I am wondering how (if it is possible of course) I can change a users screen resolution to a certain size when running my application and then change it back when they exit my application. For...
7
by: tim | last post by:
can someone tell me which function returns the screen resolution in java script?
5
by: Maxi | last post by:
I have a 30X16 cells table in my html page. Table height and width are set to 100%. I have set size of every cell inside the table to 24 pixel. When I open the html page in maximize state in...
9
by: Steve Wright | last post by:
Hi I'm developing a webpage that needs to include a different stylesheet depending on the screen resolution. I know that I could read the resolution in javascript and then do some sort of...
1
by: nasima khan | last post by:
Hi, i am nasima. I have got a code for setting the screen resolution of my page, but i am unable to understand. Can any one give a complete data explanation of the below code. Sub ChangeRes(X...
7
by: Peter Oliphant | last post by:
In today's market, what's a good screen resolution that I can pretty much count on as being the minimum? This is kind of a 'fuzzy' question in that I'm interested in the biggest screen...
1
by: CloudSolutions | last post by:
Introduction: For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...
0
by: ryjfgjl | last post by:
In our work, we often need to import Excel data into databases (such as MySQL, SQL Server, Oracle) for data analysis and processing. Usually, we use database tools like Navicat or the Excel import...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.