Q
Problem solve Get help with specific problems with your technologies, process and projects.

How do I display a message, or redirect to a temporary Web page, until the processing is finished, t

I have a large ASP.NET Web form that takes a lot of server side processing time. How do I display a message, or redirect to a temporary Web page, until the processing is finished, then redisplay the original Web form?
The trick is not to redirect to another page, but rather to render some progress information while the server is working. One way of doing this is to render an <img> tag as soon as the page is loaded (or initialized), without anything else (even the <html> opening tag), or maybe some dots. The image can be an animated GIF, which simulates progress. Once the full page rendering process emits the appropriate <html> tags, the image will disappear and overwritten by the new page.

Another workaround is to emit a <div> with an ID and emit a script that hides it at the bottom of the page. Here goes some code that does the trick:

 

Dig Deeper on Win Development Resources

Have a question for an expert?

Please add a title for your question

Get answers from a TechTarget expert on whatever's puzzling you.

You will be able to add details on the next page.

Start the conversation

Send me notifications when other members comment.

Please create a username to comment.

-ADS BY GOOGLE

SearchCloudComputing

SearchSoftwareQuality

TheServerSide.com

Close