473,382 Members | 1,726 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,382 software developers and data experts.

Dots Per Inch Problem


I have created an asp.net website that looks fine when I view it from my
computer, but when I browse from another computer the controls are
overlapping each other in some cases. In other cases the text in tables
is wrapping onto itself.

I figured out what is causing the problem. This is only happening on
remote computers where the DPI Dots Per Inch of the display is set to
"Large size (120 DPI)" instead of "Normal size (96 DPI)". I am not sure
what to do about this though. I would like the website to display
correctly no matter what the user has their dpi set to. Does anyone have
a solution to this? Thanks.

To reproduce the dpi change:
Right Click on desktop, click properties, click settings, click
"advanced" near the bottom, click on the "general" tab, you should have
a combo box that allows you to change the dpi.
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
2 1094
don't use gridmode - it has this limitation. your only other option is to
write clientside code that resizes everything.

-- bruce (sqlwork.com)
"chris blackbur" <bl******@aol.com> wrote in message
news:eA*************@TK2MSFTNGP14.phx.gbl...
|
| I have created an asp.net website that looks fine when I view it from my
| computer, but when I browse from another computer the controls are
| overlapping each other in some cases. In other cases the text in tables
| is wrapping onto itself.
|
| I figured out what is causing the problem. This is only happening on
| remote computers where the DPI Dots Per Inch of the display is set to
| "Large size (120 DPI)" instead of "Normal size (96 DPI)". I am not sure
| what to do about this though. I would like the website to display
| correctly no matter what the user has their dpi set to. Does anyone have
| a solution to this? Thanks.
|
| To reproduce the dpi change:
| Right Click on desktop, click properties, click settings, click
| "advanced" near the bottom, click on the "general" tab, you should have
| a combo box that allows you to change the dpi.
|
|
| *** Sent via Developersdex http://www.developersdex.com ***
| Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #2
You probably dragging and dropping controls on the form and let VS.NET
desigenr to position controls. If you look at HTML source your labels will
probably look somehting like that:
<asp:Label id="Label1" style="Z-INDEX: 101; LEFT: 96px; POSITION: absolute;
TOP: 128px" runat="server" Width="72px" Height="56px">Label</asp:Label>

So HTML elements are positioned on the page based on TOP/LEFT pixel
coordiance. It will render differently on different monitors with different
physical sizes and different resolutions.
You don't want to do that. Remove that styles nonsense and istead use HTML
tags like <table> to naturally position controls on the page.

"bruce barker" wrote:
don't use gridmode - it has this limitation. your only other option is to
write clientside code that resizes everything.

-- bruce (sqlwork.com)
"chris blackbur" <bl******@aol.com> wrote in message
news:eA*************@TK2MSFTNGP14.phx.gbl...
|
| I have created an asp.net website that looks fine when I view it from my
| computer, but when I browse from another computer the controls are
| overlapping each other in some cases. In other cases the text in tables
| is wrapping onto itself.
|
| I figured out what is causing the problem. This is only happening on
| remote computers where the DPI Dots Per Inch of the display is set to
| "Large size (120 DPI)" instead of "Normal size (96 DPI)". I am not sure
| what to do about this though. I would like the website to display
| correctly no matter what the user has their dpi set to. Does anyone have
| a solution to this? Thanks.
|
| To reproduce the dpi change:
| Right Click on desktop, click properties, click settings, click
| "advanced" near the bottom, click on the "general" tab, you should have
| a combo box that allows you to change the dpi.
|
|
| *** Sent via Developersdex http://www.developersdex.com ***
| Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #3

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

Similar topics

3
by: James P. | last post by:
Help, In Access 2000, I have a bound column - textbox. As soon as I type three dots (periods) in the textbox and keep typing (more dots or anything else), it automatically converts the three...
2
by: Thomas Kehl | last post by:
Hi! Is there anywhere a possibility to calculate the number of pixels/inch on the current screen? I have a Length. Now, i have to calculate, How many pixel this Length is on the current...
4
by: Vagif Abilov | last post by:
Our .NET applications and Web sites use configuration files with custom sections. It's no problem to read a section with dots in its name from a Windows .NET application, e.g....
4
by: Terry | last post by:
I have a form that my wife uses to update her tennis racket website. I modified it to allow data entry, modify, and delete. If you enter an id number you get the matching record if there is one. ...
8
by: Rainer Queck | last post by:
Hi NG, in a dataset.datatable I have rows, containing metric data as doubles. I need to display/edit these values in textboxes depending on the culture (Metric/Inch). Is there something like a...
4
by: Jimmy | last post by:
hi, all I attempt to use the function inch() to get the character at the current position, and compare it with a particular character like : if screen.inch(x,y) == 'F' but this method doesn't...
3
by: headware | last post by:
I have to create some vertical text for a web page that allows users to print to labels. We decided to do this by creating an <imgtag on the web page and having the src attribute point to another...
10
by: sophie_newbie | last post by:
Hi, I'm trying to write a piece of code that spawns a thread and prints dots every half second until the thread spawned is finished. Code is something like this: import threading class...
4
by: MangroveRoot | last post by:
A few years ago, I worked on a project in which I designed some tables, queries, forms, and reports. I'm reasonably certain that when I was designing the forms for that project, I set the...
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
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
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: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
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: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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.