What is the best way to send messages to the user during a long process in asp.net. In other languages there is a flush method and I see that asp.net has that as well but is that the best way? If not, how else can you do this?
The best way to do it is to spawn a separate thread that performs the long running process and then have an ajax call on the main thread that requests status from the long running thread and displays the status as appropriate.
A relatively good article that explains this in depth can be found here: http://www.devarchive.net/displaying_progress_bar_for_long_running_processes.aspx