Great Step By Step Guide on how to build an ASP.NET "WaitScreen" Server Control

Daniel Fisher recently forwarded me a pointer to an excellent step-by-step blog post he wrote that walks through how to build an ASP.NET Server Control that provides "wait-screen" functionality for long-rendering pages (note: this can be used to avoid users becoming impatient, hitting refresh, only to restart a long running request).

What I really like about this article isn't just the control he builds (which happens to be cool and useful), but more the step-by-step approach he uses to explain all of the concepts behind building a re-usable control (properties and property grid integration in VS/VWD, event handlers, rendering, design-time UI, default tag-prefix and naming, toolbox icon, etc).  If you've never built a server control before and worry it sounds hard, or don't know how to begin, you should really read his post.

You can read it all here.

Hope this helps,

Scott

P.S. Last week I also blogged about a good server control development article that Dino wrote about the new CompositeControl base class in ASP.NET 2.0 (which makes it much easier to create and use controls within a custom control you build).  You can read it here.

 

Published Thursday, February 23, 2006 8:31 PM by ScottGu

Comments

# re: Great Step By Step Guide on how to build an ASP.NET "WaitScreen" Server Control

Friday, February 24, 2006 1:50 AM by Leo To
Nice article. However to my thought using a control to do this may not be suitable as you need to move all operations into the Waitcontrol_WaitProcess event. I believe a better way to do is to override the page rendering event or simply using javascript directly in a master page.

# re: Great Step By Step Guide on how to build an ASP.NET "WaitScreen" Server Control

Saturday, February 25, 2006 10:37 AM by Steve
thanks - very much needed. I think seeing examples step by step will help people like me to understand it better.

Going from a page developer to a control developer is a big leap I think.

# re: Great Step By Step Guide on how to build an ASP.NET "WaitScreen" Server Control

Friday, March 3, 2006 3:39 AM by Bhavin
Very nice article but, if I can get same information in VB it would be very helpful.

# re: Great Step By Step Guide on how to build an ASP.NET "WaitScreen" Server Control

Monday, May 29, 2006 2:40 PM by www.paketim.com
Simone,

I am using busybox and I agree that a wait screen control which works while leaving a page is more useful...