display user please wait, while backend is processing

B

batham

Gurus,

I have a mainpage.aspx webform, in the page load of this page I am
displaying a text "Please wait connecting..." and then I want the user
to see this output on the WebForm, while I do some backend processing.
Once the backend processing is done I want to redirect the user to
another page e.g. "http://www.google.com".

I want to achieve the above without javascript, it should be pure
ASP.Net, is this possible ?

Can I show the user some message in a WebForm, while I do some backend
processing?

I tried
Response.write("Please wait connecting...");
Response.flush(); // This works.
// Do some backend process
Response.Redirect("http://www.google.com"); // This generates the error
"Cannot redirect after HTTP headers have been sent."

What am I missing?

Help is appreciated

Thanks,
Shailendra Batham
 
W

Wilco Bauwer

You could take a look at my progress bar. However, it uses XMLHTTP
(=client-side) to display the progress bar. You can use the synchronous
approach, which means that the back-end progress blocks the request
(although the progress bar starts doing its job, until its at 100%),
and then let you send the response (which can be a redirect to
google.com).

Both a synchronous and asynchronous scenario is demo'ed on my website.
Take a look at http://wilcoding.xs4all.nl/Wilco/View.aspx?NewsID=146
for a link to the demo/download (its free and source is included).
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,016
Latest member
TatianaCha

Latest Threads

Top