I have one page that may take a while to process on the server, and I'd like
to implement a please wait message on this page when it posts back to the
server and does its business.
The page is an ASP.NET webform that contains a Web User Control. The Web
User Control is doing all of the work posting. How can I inform the user of
what is happening at the server while the data from this web user control is
being processed?
--
Stephajn Craig 4 9121
It sounds like you should consider using multithreading.
By running the long process on a separate thread, you free the browser up to
do other things, such as display the current status of the task.
That way the browser will respond immediately with a new page and can
entertain the user while they wait with an animation or status bar.
You can have the browser refresh the status by putting an HTML line like
this in your code:
<META HTTP-EQUIV="refresh" CONTENT="3">
That will cause the browser to refresh every 3 seconds (and you can check
the status of the operation each time and redirect to a "done" page when
appropriate.)
Here's more details: http://www.fawcette.com/vsm/2002_11/...tures/chester/ http://www.dotnetjunkies.com/tutoria...tutorialid=547
Another option is that you could call a web service from your client side
JScript. Use the web service behavior for this. (WebService.htc ) This
technique works with IE only.
Here's more details: http://msdn.microsoft.com/library/de...s/overview.asp http://msdn.microsoft.com/downloads/...ce/default.asp
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
"Stephajn Craig" <s.*****@NOSPAM funsunvacations .com> wrote in message
news:eb******** ******@TK2MSFTN GP12.phx.gbl... I have one page that may take a while to process on the server, and I'd
like to implement a please wait message on this page when it posts back to the server and does its business.
The page is an ASP.NET webform that contains a Web User Control. The Web User Control is doing all of the work posting. How can I inform the user
of what is happening at the server while the data from this web user control
is being processed?
-- Stephajn Craig
Thanks Steve! Both of these methods helped. The only question is to decide
which one to use. I like the Web Service method becasue it doesn't need a
full refresh of the page. However, I also like the MultiThreaded Approach
because it allows me to hold some items within the current HttpContext at
Serverside. (Like a Collection)
The scenario is that all of this data is going to be loaded into a database,
but then also some checks will be done against it at serverside to ensure
that no conflicts will occur. (Like one Person scheduled for a meeting
isn't already scheduled for another)
Once the data is done posting, the server would be holding a collection of
issues that will need to be resolved or ignored if the user wishes it.
Any ideas on which method you would use ?
--
Stephajn Craig
"Steve C. Orr, MCSD" <St***@Orr.ne t> wrote in message
news:Oj******** ******@TK2MSFTN GP09.phx.gbl... It sounds like you should consider using multithreading. By running the long process on a separate thread, you free the browser up
to do other things, such as display the current status of the task. That way the browser will respond immediately with a new page and can entertain the user while they wait with an animation or status bar. You can have the browser refresh the status by putting an HTML line like this in your code: <META HTTP-EQUIV="refresh" CONTENT="3"> That will cause the browser to refresh every 3 seconds (and you can check the status of the operation each time and redirect to a "done" page when appropriate.) Here's more details: http://www.fawcette.com/vsm/2002_11/...tures/chester/ http://www.dotnetjunkies.com/tutoria...tutorialid=547
Another option is that you could call a web service from your client side JScript. Use the web service behavior for this. (WebService.htc ) This technique works with IE only. Here's more details: http://msdn.microsoft.com/library/de...s/overview.asp http://msdn.microsoft.com/downloads/...ce/default.asp -- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net
"Stephajn Craig" <s.*****@NOSPAM funsunvacations .com> wrote in message news:eb******** ******@TK2MSFTN GP12.phx.gbl... I have one page that may take a while to process on the server, and I'd like to implement a please wait message on this page when it posts back to
the server and does its business.
The page is an ASP.NET webform that contains a Web User Control. The
Web User Control is doing all of the work posting. How can I inform the
user of what is happening at the server while the data from this web user
control is being processed?
-- Stephajn Craig
Well the web services strategy probably wouldn't work as well in a
cross-browser environment.
So if you have cross-browser requirements then that makes your decision
easy.
Expedia employs a multithreaded approach similar to what I described and it
looks pretty sharp. Look up a flight and see what I mean.
--
I hope this helps,
Steve C. Orr, MCSD http://Steve.Orr.net
"Stephajn Craig" <s.*****@NOSPAM funsunvacations .com> wrote in message
news:%2******** ********@tk2msf tngp13.phx.gbl. .. Thanks Steve! Both of these methods helped. The only question is to
decide which one to use. I like the Web Service method becasue it doesn't need a full refresh of the page. However, I also like the MultiThreaded Approach because it allows me to hold some items within the current HttpContext at Serverside. (Like a Collection)
The scenario is that all of this data is going to be loaded into a
database, but then also some checks will be done against it at serverside to ensure that no conflicts will occur. (Like one Person scheduled for a meeting isn't already scheduled for another)
Once the data is done posting, the server would be holding a collection of issues that will need to be resolved or ignored if the user wishes it.
Any ideas on which method you would use ? -- Stephajn Craig "Steve C. Orr, MCSD" <St***@Orr.ne t> wrote in message news:Oj******** ******@TK2MSFTN GP09.phx.gbl... It sounds like you should consider using multithreading. By running the long process on a separate thread, you free the browser
up to do other things, such as display the current status of the task. That way the browser will respond immediately with a new page and can entertain the user while they wait with an animation or status bar. You can have the browser refresh the status by putting an HTML line like this in your code: <META HTTP-EQUIV="refresh" CONTENT="3"> That will cause the browser to refresh every 3 seconds (and you can
check the status of the operation each time and redirect to a "done" page when appropriate.) Here's more details: http://www.fawcette.com/vsm/2002_11/...tures/chester/ http://www.dotnetjunkies.com/tutoria...tutorialid=547
Another option is that you could call a web service from your client
side JScript. Use the web service behavior for this. (WebService.htc ) This technique works with IE only. Here's more details: http://msdn.microsoft.com/library/de...s/overview.asp
http://msdn.microsoft.com/downloads/...ce/default.asp -- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net
"Stephajn Craig" <s.*****@NOSPAM funsunvacations .com> wrote in message news:eb******** ******@TK2MSFTN GP12.phx.gbl... I have one page that may take a while to process on the server, and
I'd like to implement a please wait message on this page when it posts back to
the server and does its business.
The page is an ASP.NET webform that contains a Web User Control. The Web User Control is doing all of the work posting. How can I inform the
user of what is happening at the server while the data from this web user control is being processed?
-- Stephajn Craig
If you just want to display a simple message like "Please wait
loading...it may take few minutes..", you can do that using layers.
Create a DIV tag for the complete page size and have an animated image
in it to show that the page is loading. On the page load hide this
layer and on unload of the page bring it to the top(z-index) and show
it. If you use smart navigation, this page will be shown until your
long reaquest gets completed and displayed in the browser.
I did this in one of my projects and my queries may run longer than
six minutes. It is working fine and is in production.
Thanks
Ram
"Steve C. Orr, MCSD" <St***@Orr.ne t> wrote in message news:<Oz******* *******@TK2MSFT NGP10.phx.gbl>. .. Well the web services strategy probably wouldn't work as well in a cross-browser environment. So if you have cross-browser requirements then that makes your decision easy.
Expedia employs a multithreaded approach similar to what I described and it looks pretty sharp. Look up a flight and see what I mean.
-- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net
"Stephajn Craig" <s.*****@NOSPAM funsunvacations .com> wrote in message news:%2******** ********@tk2msf tngp13.phx.gbl. .. Thanks Steve! Both of these methods helped. The only question is to decide which one to use. I like the Web Service method becasue it doesn't need a full refresh of the page. However, I also like the MultiThreaded Approach because it allows me to hold some items within the current HttpContext at Serverside. (Like a Collection)
The scenario is that all of this data is going to be loaded into a database, but then also some checks will be done against it at serverside to ensure that no conflicts will occur. (Like one Person scheduled for a meeting isn't already scheduled for another)
Once the data is done posting, the server would be holding a collection of issues that will need to be resolved or ignored if the user wishes it.
Any ideas on which method you would use ? -- Stephajn Craig "Steve C. Orr, MCSD" <St***@Orr.ne t> wrote in message news:Oj******** ******@TK2MSFTN GP09.phx.gbl... It sounds like you should consider using multithreading. By running the long process on a separate thread, you free the browser up to do other things, such as display the current status of the task. That way the browser will respond immediately with a new page and can entertain the user while they wait with an animation or status bar. You can have the browser refresh the status by putting an HTML line like this in your code: <META HTTP-EQUIV="refresh" CONTENT="3"> That will cause the browser to refresh every 3 seconds (and you can check the status of the operation each time and redirect to a "done" page when appropriate.) Here's more details: http://www.fawcette.com/vsm/2002_11/...tures/chester/ http://www.dotnetjunkies.com/tutoria...tutorialid=547
Another option is that you could call a web service from your client side JScript. Use the web service behavior for this. (WebService.htc ) This technique works with IE only. Here's more details: http://msdn.microsoft.com/library/de...s/overview.asp
http://msdn.microsoft.com/downloads/...ce/default.asp -- I hope this helps, Steve C. Orr, MCSD http://Steve.Orr.net
"Stephajn Craig" <s.*****@NOSPAM funsunvacations .com> wrote in message news:eb******** ******@TK2MSFTN GP12.phx.gbl... > I have one page that may take a while to process on the server, and I'd like > to implement a please wait message on this page when it posts back to the > server and does its business. > > The page is an ASP.NET webform that contains a Web User Control. The Web > User Control is doing all of the work posting. How can I inform the user of > what is happening at the server while the data from this web user control is > being processed? > > -- > Stephajn Craig > >
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics |
by: Jason . |
last post by:
I have seen a few articles with a javascript example but it is not
working for me. The server side code is processed first and then the
javascript so I basically get my page loading splash screen displayed
for a split second and then my page I am navigating to.
How do I display the "Please Wait..." before the server side code kicks
in? Thanks.
|
by: Danny Masti |
last post by:
Hello,
I have a HIDDEN div with a "Please Wait Message". OnSubmit I show the
hidden div with the "Please Wait Message". It works fine. But if I
replace the "Please Wait Message" with an animated gif - the gif shows
up BUT it does not animate.
How do I make the gif animate?
THIS WORKS (initially hidden):-
|
by: Dennis M. Marks |
last post by:
I have multiple functions that dynamically build parts of a page. It
can take 15-30 seconds for this process to complete. In IE nothing
appears until the page is complete. In Netscape parts of the page
appear as built.
Is there any way to display a "Please Wait" message that displays as
soon as the first javascript begins and disappears when the javascripts
have completed? Some scripts are in the header and some in the body. I
have...
|
by: Lucas Tam |
last post by:
Does anyone have easy to use sample code to build a "Please wait...
processing data screen?"
I'm interested in something like Expedia's search page
Thanks.
--
Lucas Tam (REMOVEnntp@rogers.com)
Please delete "REMOVE" from the e-mail address when replying.
|
by: Chris |
last post by:
Hi,
I was following the article
http://msdn.microsoft.com/msdnmag/issues/03/12/DesignPatterns/default.aspx I
got everything working until I go the the Progress bar section. Here is where
I am stuck.
This is the vb.net code for the wait.aspx page
Public redirectPage As String = ""
Public secondsToWait As String = "0"
| |
by: s_erez |
last post by:
Hi,
This is a realy tricky one.
I have an ASP.NET application where some pages are reading data from a
DB and presenting reports.
In order for the user to wait while the page is reading data from the
DB I am using a DIV with a please wait message which is removed once
the page is loaded.
In addition I am using a global error handling using the
Application_Error void in the Global.asax file.
when the application is loading a page which...
|
by: ~Maheshkumar.R |
last post by:
hi groups,
I have developed one FTP application in ASP.NET, When i upload a file, i
want to show something on screen like " Please wait ...! Your file is being
uploading........"
As soon the file gets uploaded, i have to transfer control to final page
saying UPLOADED Successfully.
How can i achieve this ..
--
Mahesh kumar.R
|
by: puja patel |
last post by:
hi all,
I am developing a shopping cart website in C# where after selecting item,
user enters credit card details and click on submit button.This request is
then processed by the gateway which usually takes from 5-10 sec of waiting
period to get response back if the transaction was approved of declined.
I want to implement page which says "Please wait...your request is being
processed." after user clicks on submit button and before I...
|
by: Jeremy |
last post by:
Hi all,
I have database actions that will potentially take several seconds to
complete.
My normal page uses AJAX so keeping the user informed of what is
happening is not a problem.
However, the page also has fallback code in case of no Javascript. In
this case I would like to display temporary "please wait" type page
|
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...
|
by: Oralloy |
last post by:
Hello folks,
I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>".
The problem is that using the GNU compilers, it seems that the internal comparison operator "<=>" tries to promote arguments from unsigned to signed.
This is as boiled down as I can make it.
Here is my compilation command:
g++-12 -std=c++20 -Wnarrowing bit_field.cpp
Here is the code in...
| |
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,...
|
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...
|
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own....
Now, this would greatly impact the work of software developers. The idea...
|
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 last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols.
I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
|
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
|
by: muto222 |
last post by:
How can i add a mobile payment intergratation into php mysql website.
| |
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...
| |