473,804 Members | 3,311 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

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 9964
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 programmaticall y by detecting the user
screen settings.

--

Regards,

Hermit Dave
(http://hdave.blogspot.com)
"Robert Bull" <ro*********@wb p.org> wrote in message
news:bf******** *************** ***@posting.goo gle.com...
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*********@wb p.org> wrote in message
news:bf******** *************** ***@posting.goo gle.com...
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 programmaticall y 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*********@wb p.org> wrote in message
news:bf******** *************** ***@posting.goo gle.com...
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*****@hotmai l.com> wrote in message
news:eH******** ******@TK2MSFTN GP11.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 programmaticall y 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...typ ically 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
11071
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
4413
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: I would like to detect, get values for, the screen resolution in px but in a code behind. Is this possible? There is a System.Windows.Forms.Screen class for the Windows client side, why are there none for browser/ASP.NET client?
4
15528
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 deeply appreciated. Thanks in advance....
1
2174
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, call in Page_Load.I fix the text of The Control Label. But no treatment is possible. If i try to keep out the text of this label in code behind, i have nothing. The variable is empty.
6
2682
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 instance, if the users screen size is 800x600, I want the resolution to change to 1260x780 when running my program and then change back to 800x600 when exiting my program. Thanks, Darian
7
8115
by: tim | last post by:
can someone tell me which function returns the screen resolution in java script?
5
6215
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 either resolution 800 X 600 or 1152 X 864 it takes up the entire explorer size. In screen resolution 800 X 600, if I insert a pictures of 24 X 24 pixel in the cells it takes up the entire cell size (ideally it should as the cell size is also 24 X...
9
3908
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 stylesheet switcher as part of the onload event but I would rather link in the correct stylesheet for the resolution in the first place.
1
2508
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 As Long, Y As Long, Bits As Long) Dim DevM As DEVMODE, ScInfo As Long, erg As Long, an As VbMsgBoxResult 'Get the info into DevM erg = EnumDisplaySettings(0&, 0&, DevM) 'This is what we're going to change DevM.dmFields =...
7
1383
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 resolution that I can be pretty sure most people who buy a computer today (within the last year or two) will have a graphic card that supports it. For example, is 1024 x 768 x 32bits pretty much supported on most PC computers today?
0
9708
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
10340
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
10327
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10085
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
1
7625
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6857
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
1
4302
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
3828
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
3
2999
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.