How to use buffering to show progress?

G

GS

Hi,

I'm using buffering to write to client about progress of long running query, my question is how do I remove everything from browser screen what was written so far once results are ready.
Right now Response.Write writes to output stream even before <HTML> tag is written so I can not really use <DIV> elements etc.
Any ideas short of doing AJAX stuff? Or ASP.NET 2.0 gives me some miracle controls which will do that for me?

Greg
 
R

rpraveen

Greg,

A great way to start using AJAX in ASP.Net 2.0 in your web pages is by
using the CallbackPanel control which is part of Essential Tools for
ASP.Net from Syncfusion.

The scenario you mention above could be easily implemented as follows:

1) In JS you would invoke a callback to the server on say a button
click for example as follows:

_sfCallbackPanel1.callback("some custom args");

2) This will fire the CallbackPanel1.Callback event on your page on the
server, where you can clear and populate the CallbackPanel (Panel
derived class) with a whole new set of controls.

3) The callback will return and refresh your page with the new content.

Take a look at all our AJAX samples at:
http://www2.syncfusion.com/2.0/samples.aspx

.... and browse to Tools.Web/CallbackControls in the tree on the left.

There is also a ProgressBar control which can be used to display the
status of long operations in a AJAX/Callback scenario like above at
Tools.Web/ProgressBar.

Regards,
Praveen Ramesh
Syncfusion, Inc.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,744
Messages
2,569,483
Members
44,901
Latest member
Noble71S45

Latest Threads

Top