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

Why does screen repaint?


We are developing a series of financial calculators based on ASP.NET
technologies.

Here's our first one:

http://www.pine-grove.com/web%20calculators/Loan.aspx
When the user clicks "Calc", the browser window repaints itself. Why?
(More so in IE 6.x than in Firefox v1.x.)
Also, we would sure like to know why the dropdown comboboxes aren't as
wide as the editboxes, though the style sets them to the same width and
they display using the same widths when run locally.

TIA.
Nov 19 '05 #1
6 1434
I would recommend asking your ASP.Net developer(s). They should know.

--
HTH,

Kevin Spencer
Microsoft MVP
..Net Developer
Expect the unaccepted.

"Karl" <kt*******@nospam.pine-grove.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...

We are developing a series of financial calculators based on ASP.NET
technologies.

Here's our first one:

http://www.pine-grove.com/web%20calculators/Loan.aspx
When the user clicks "Calc", the browser window repaints itself. Why?
(More so in IE 6.x than in Firefox v1.x.)
Also, we would sure like to know why the dropdown comboboxes aren't as
wide as the editboxes, though the style sets them to the same width and
they display using the same widths when run locally.

TIA.

Nov 19 '05 #2
You are gonna get the flicker regardless of what you do. You are sending a
new request to the server and getting a new response. IE and FireFox need
to redraw the page . Hopefully future versions of IE and Firefox and other
browsers will improve on how they do this (using buffers and such I would
imagine). Indeed, firefox does seem a little better.

Some solutions are to use ASP.Net's smartnavigation
(http://msdn.microsoft.com/library/de...ationTopic.asp)
though it causes a lot of problems for a lot of people. I know a lot (I'd
say most but I don't know this for sure) do not use it due to all the
pitfalls.

Alternatively, you could calculate in javascript (on the client) which
wouldn't cause the page to be posted back, or use Ajax as a middle-ground.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Karl" <kt*******@nospam.pine-grove.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...

We are developing a series of financial calculators based on ASP.NET
technologies.

Here's our first one:

http://www.pine-grove.com/web%20calculators/Loan.aspx
When the user clicks "Calc", the browser window repaints itself. Why?
(More so in IE 6.x than in Firefox v1.x.)
Also, we would sure like to know why the dropdown comboboxes aren't as
wide as the editboxes, though the style sets them to the same width and
they display using the same widths when run locally.

TIA.

Nov 19 '05 #3
*nods*

I'll add to that, as for the 2nd part of your question that your
css/styles/html is a mess, it's no wonder you can't figure out why it isn't
behaving like it should.

Your page includes 2 relatively large external css files (nothing wrong with
this, but don't ask us to go through them looking for the error), with a lot
of styles in one overwritting styles in the other (ie, they both have a body
style).

Additionally, you have a bunch of inline styles which makes it even hard to
pinpoint... Finally, the style on your textbox looks like:

style="width:130px;FONT-FAMILY:"Courier New, Courier,
mono;TEXT-ALIGN:right;BORDER-LEFT:#2c5926 1px
ridge;COLOR:#000000;BORDER-BOTTOM:#2c5926 1px
ridge;PADDING-RIGHT:10px;BORDER-RIGHT:#2c5926 1px ridge;BORDER-TOP:#2c5926
1px ridge;FONT-SIZE:10pt; />

as you can see, there's a " after font-Family: and then none before the />
it's a wonder anything even shows up...

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Kevin Spencer" <ke***@DIESPAMMERSDIEtakempis.com> wrote in message
news:eX**************@tk2msftngp13.phx.gbl...
I would recommend asking your ASP.Net developer(s). They should know.

--
HTH,

Kevin Spencer
Microsoft MVP
.Net Developer
Expect the unaccepted.

"Karl" <kt*******@nospam.pine-grove.com> wrote in message
news:Oh**************@tk2msftngp13.phx.gbl...

We are developing a series of financial calculators based on ASP.NET
technologies.

Here's our first one:

http://www.pine-grove.com/web%20calculators/Loan.aspx
When the user clicks "Calc", the browser window repaints itself. Why?
(More so in IE 6.x than in Firefox v1.x.)
Also, we would sure like to know why the dropdown comboboxes aren't as
wide as the editboxes, though the style sets them to the same width and
they display using the same widths when run locally.

TIA.


Nov 19 '05 #4
it's a wonder anything even shows up...<<<<

Guess I'm just lucky. :-)

Thanks for your pointers. They are most helpful.

(The Delphi IDE seems to insert some of the styles and the same time I'm
trying to maintain the styles manually.)
Karl Seguin wrote: *nods*

I'll add to that, as for the 2nd part of your question that your
css/styles/html is a mess, it's no wonder you can't figure out why it isn't
behaving like it should.

Your page includes 2 relatively large external css files (nothing wrong with
this, but don't ask us to go through them looking for the error), with a lot
of styles in one overwritting styles in the other (ie, they both have a body
style).

Additionally, you have a bunch of inline styles which makes it even hard to
pinpoint... Finally, the style on your textbox looks like:

style="width:130px;FONT-FAMILY:"Courier New, Courier,
mono;TEXT-ALIGN:right;BORDER-LEFT:#2c5926 1px
ridge;COLOR:#000000;BORDER-BOTTOM:#2c5926 1px
ridge;PADDING-RIGHT:10px;BORDER-RIGHT:#2c5926 1px ridge;BORDER-TOP:#2c5926
1px ridge;FONT-SIZE:10pt; />

as you can see, there's a " after font-Family: and then none before the />
it's a wonder anything even shows up...

Karl

Nov 19 '05 #5
Alternatively, you could calculate in javascript

I gather that I could also put the calculation in the code-behind page
to avoid the flicker? (This would also have the benefit of hiding my code.)

Karl Seguin wrote: You are gonna get the flicker regardless of what you do. You are sending a
new request to the server and getting a new response. IE and FireFox need
to redraw the page . Hopefully future versions of IE and Firefox and other
browsers will improve on how they do this (using buffers and such I would
imagine). Indeed, firefox does seem a little better.

Some solutions are to use ASP.Net's smartnavigation
(http://msdn.microsoft.com/library/de...ationTopic.asp)
though it causes a lot of problems for a lot of people. I know a lot (I'd
say most but I don't know this for sure) do not use it due to all the
pitfalls.

Alternatively, you could calculate in javascript (on the client) which
wouldn't cause the page to be posted back, or use Ajax as a middle-ground.

Karl

Nov 19 '05 #6
No. Unfortunetly, if you think this (and I'm not trying to be rude) you
need to go back and read about basic web programming and the difference
between server-side and client-side. If your calculation is happening on
the server, regardless of whether it's using codebehind or inline asp.net
(via <script runat="server">) the browser still needs to make a new request
to the server and handle a new response.

Karl

--
MY ASP.Net tutorials
http://www.openmymind.net/ - New and Improved (yes, the popup is
annoying)
http://www.openmymind.net/faq.aspx - unofficial newsgroup FAQ (more to
come!)
"Karl" <kt*******@nospam.pine-grove.com> wrote in message
news:OE****************@TK2MSFTNGP14.phx.gbl...
Alternatively, you could calculate in javascript


I gather that I could also put the calculation in the code-behind page to
avoid the flicker? (This would also have the benefit of hiding my code.)

Karl Seguin wrote:
You are gonna get the flicker regardless of what you do. You are sending
a new request to the server and getting a new response. IE and FireFox
need to redraw the page . Hopefully future versions of IE and Firefox
and other browsers will improve on how they do this (using buffers and
such I would imagine). Indeed, firefox does seem a little better.

Some solutions are to use ASP.Net's smartnavigation
(http://msdn.microsoft.com/library/de...ationTopic.asp)
though it causes a lot of problems for a lot of people. I know a lot
(I'd say most but I don't know this for sure) do not use it due to all
the pitfalls.

Alternatively, you could calculate in javascript (on the client) which
wouldn't cause the page to be posted back, or use Ajax as a
middle-ground.

Karl

Nov 19 '05 #7

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

Similar topics

2
by: Adrian Lumsden | last post by:
Hello, I have an app where I have to screen scrape to capture an image from a JMF film player. The user is given a dialog with a list of frames that can be exported as images. If the one they...
1
by: edward hage | last post by:
The following program is an applet that reads a number from a file 10 times per second. It needs to be shown graphically. The file monitors a procesvariable and changes continuously. It is read...
0
by: Bo | last post by:
Hi The rectangles I draw in paint() always hide underneath the "Select one to launch" screen, while the string "Hello World" is drawn over the "to launch" screen. What am I doing wrong? jdk...
1
by: Bill K | last post by:
I am developing a winforms project in vb.net. I have several forms that have a number of controls, grids, etc. When I load these as MDI child forms, they load slowly AND they paint/repaint on the...
2
by: Joe A | last post by:
I'm using Access 2002 on Windows XP PC, 500 megs ram, Front end/back end app. I have a simple form that draws a thermometer to indicate progress of code that is running. The thermometer form...
2
by: ΢ÈíÐÂÎÅ×é | last post by:
i want to abtain remote screen capture on the pc in LAN. i was suggested to transmit the changed parts only to save the bandwidth. so i divide the screen into 10*10 parts. and now , i need to...
3
by: jerry chapman | last post by:
Based on a mouse click I change something on the screen. I then want to repaint the screen to show the change. When I tried to use .Invalidate in my mouse routine, I got a compilation error. ...
0
by: et | last post by:
How do I get the screen to repaint? I have a normal login process where the user clicks on the logon button, and the logon is authenticated. An error is returned if the logon is not validated,...
4
by: bfulford | last post by:
I have a macro that needs to have a progress meter displayed since it is long running. I moved the Macro's instructions to a table and pulled those records into a recordset that is looped through....
0
by: milkay | last post by:
<I have code that uses 2 images> the program creates a window and then when u press play, it removes all components in the container. then, i add a NewPanel object. i add mouse listeners and all...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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...
0
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...
0
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...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
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...
0
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?

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.