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

How do draw new window immideately?

I have a web form which does some time consuming operation (~ 10 seconds) in
Page_Load. This results in a stale window to the user until Page_Load is
finished rendering the page.

Is it possible to get the window to be drawn at once to the user, maybe
displaying "Loading..." and then redraw the window again when the processing
is complete?

Olav
Nov 18 '05 #1
2 1107
I don't know any trivial way of doing this. Look at airline flight search
pages (e.g. Orbitz.com, Yahoo! Travel, Travelocity, etc) for examples of
how this is done. (Usually with meta-refreshing pages which carry a ticket
#)

Thanks,

Eric Lawrence
Program Manager
Assistance and Worldwide Services

This posting is provided "AS IS" with no warranties, and confers no rights.
"Olav Tollefsen" <x@y.com> wrote in message
news:Oc*************@TK2MSFTNGP09.phx.gbl...
I have a web form which does some time consuming operation (~ 10 seconds) in Page_Load. This results in a stale window to the user until Page_Load is
finished rendering the page.

Is it possible to get the window to be drawn at once to the user, maybe
displaying "Loading..." and then redraw the window again when the processing is complete?

Olav

Nov 18 '05 #2
What you can do is output the "loading" in a <DIV> or <Span> tag, and then
do response.flush.
Then after the flush start your long running process. After that process is
complete write out some javascript that will hide that <DIV> tag
(style.display = 'none')

Michael
"Olav Tollefsen" <x@y.com> wrote in message
news:Oc*************@TK2MSFTNGP09.phx.gbl...
I have a web form which does some time consuming operation (~ 10 seconds) in Page_Load. This results in a stale window to the user until Page_Load is
finished rendering the page.

Is it possible to get the window to be drawn at once to the user, maybe
displaying "Loading..." and then redraw the window again when the processing is complete?

Olav

Nov 18 '05 #3

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

Similar topics

1
by: John | last post by:
How to draw anmation in window app? I mean... like how can I draw a dot in window at a point then moves to another point and we can see it moves. Please explain in detail.
3
by: °Ë´óɽÈË | last post by:
Hi, I create a graphics object for desktop window by following step: IntPtr hWnd = GetDesktopWindow(); // API Graphics g = Graphics.FromHWnd(hWnd); then draw the screen by g, but I can't draw...
6
by: redneon | last post by:
Is it possible to draw directly to the screen using the .net libraries? I thought that it might be possible with GDI+ but I can't find out how to do it anywhere. A part of me suspects I may have to...
1
by: Robin Tucker | last post by:
Hi ppl, My owner draw list box controls do not "refresh" old selected items when a new selection is made. This means that as you click to make selections, the previously selected items stay...
1
by: zxo102 | last post by:
Hi everyone, I have tried two days to figure out how to draw the image in wx.BufferedDC on the page created by AddPage of wx.Notebook but still got no clue. The attached example works fine. If...
0
by: suedasszyy | last post by:
Haiiii.... i'm new for VB.net. can someone help me to solve those question? is it possible to draw a graph such as Sin graph using console application? if not, how can i draw a graph...
8
by: George | last post by:
Hello everyone, I am using C# on a Pocket PC 2003 project based on .Net Compact Framework of Visual Studio 2005. I want to re-draw some controls of a Form (Window) at a regular interval (for...
10
by: Phil | last post by:
I would like to draw some text which will be in front of any other controls, but without obscuring them completely. If I use DrawString in the form's Paint handler the text is always behind, not in...
1
by: akiarea | last post by:
Hi Please tell me how to create a bitmap. Draw on it and how to save that bitmap to a bmp file. I done following : on a button click event. CDC* pDC = GetDC(); CDC memDC;...
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
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: 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
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...
0
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,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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...

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.