Search KB Filter article types
How to show a loading image in an ASPPageBox whilst the asp page loads
By: JamesC
If your aspx page takes a long time to load a good way of indicating that the application is busy and that the page is actually loading is to display a loading image inside the asppagebox itself.
Categories: ASP.NET
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ASP.NET, Pre v6.3, v6.3, v6.4 and Later
Revision: 1
Posted: 06/Jan/2010
Updated: 06/Jan/2010
Status: Publish
Types: Code

Attached is a sample vwg application that shows how to do this

http://www.lambretta.me.uk/downloads/ASPPageBoxLoadingSample.zip

The VWG form as a toolbar at the bottom

The first button will add an asppagebox to the form, the page_load event of the asp page makes it take a while to open, and so the asppagebox displays its background image during the loading

the third button changes the url for the asppagebox to another long loading page, during the transition from one page to the other the loading image is again shown

the second button on the toolbar simply resets the form and removes the asp pagebox from it

 

cheers james (and I hope that someone finds this info useful)

 

Note: Codes are submitted as a .zip file to shorten your download time. After downloading it, you will need a program like Winzip to decompress it.

Terms of Agreement:
By using this code, you agree to the following terms...

1. You may use this code in your own programs (and may compile it into a program and distribute it in compiled format for languages that allow it) freely and with no charge.
2. You MAY NOT redistribute this code (for example to a web site) without written permission from the original author. Failure to do so is a violation of copyright laws.
3. You may link to this code from another website, but ONLY if it is not wrapped in a frame.
4. You will abide by any additional copyright restrictions which the author may have placed in the code or code's description.


About the author

Related Articles

ASP.NET  
Title Update Author
This video demonstrates how to embed ASP.NET pages in Visual WebGui.
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, ASP.NET, Pre v6.3, v6.3, v6.4 and Later, 3. Advanced
31/Aug/2010    2010/08/31
Large organizations that make use of SQL server may well also use Reporting Services to create a corporate reporting solution that is accessible across the corporate LAN / WAN. This article shows how to access such a server using the report viewer control.
Tags: Architects, Developers, Wrapper, C#, 2. Intermediate, 3. Advanced, Wrapping Controls, v6.3, v6.4 and Later
26/Sep/2010    2010/09/26
This video demonstrates how to use the Visual WebGui within an ASP.Net site.
Tags: Architects, Developers, C#, 2. Intermediate, 3. Advanced, ASP.NET, Cloud, Pre v6.3, v6.3, v6.4 and Later
01/Jan/2009    2009/01/01
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ASP.NET, Pre v6.3, v6.3, v6.4 and Later
21/July/2010    2010/07/21
Tags: Architects, Developers, 1. Beginner, 2. Intermediate, 3. Advanced, ASP.NET, Pre v6.3, v6.3, v6.4 and Later
28/Oct/2010    2010/10/28
Tags: Architects, Developers, Events, C#, JavaScript, VB.NET, 2. Intermediate, 3. Advanced, ASP.NET, Pre v6.3, v6.3, v6.4 and Later
14/Dec/2010    2010/12/14
.NET Web, Cloud and Mobile application delivery platform | Sitemap | Terms of Use | Privacy Statement | Copyright © 2005-2011 Visual WebGui®       Visual WebGui weblog on ASP.NET Visual WebGui Group on LinkedIn Visual WebGui updates on Twitter Visual WebGui Page on Facebook Visual WebGui YouTube Channel Visual WebGui Platform News RSS