By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
435,157 Members | 1,001 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 435,157 IT Pros & Developers. It's quick & easy.

display user please wait, while backend is processing

P: n/a
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

Jul 21 '05 #1
Share this Question
Share on Google+
1 Reply


P: n/a
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).

----
- Wilco Bauwer
Blog & Custom Controls @ http://wilcoding.xs4all.nl

Jul 21 '05 #2

This discussion thread is closed

Replies have been disabled for this discussion.