This post originated from an RSS feed registered with .NET Buzz
by Roy Osherove.
Original Post: Real Progress Bars in Web Application
Feed Title: ISerializable
Feed URL: http://www.asp.net/err404.htm?aspxerrorpath=/rosherove/Rss.aspx
Feed Description: Roy Osherove's persistent thoughts
“The key thing for creating Progress Bar in a web application, is the browser's ability to display a page before it's totally loaded. We'll use this feature to progressively build and send the page to the client. First, we'll send the HTML code to display a nice and beautiful progress bar. Then, here is the trick, we'll dynamically send some Javascript code blocks that will updates its progression. All these, of course, before closing the HTTP request. In C#, Response.Write() lets us add some HTML to the buffer while Response.Flush() sends all buffered data to the client.”