dynamic perc done & messages

  • Thread starter Thread starter i. Wiin
  • Start date Start date
I

i. Wiin

I want to have displayed to the client some messages while processing a
large array of files. This way the user can see activity being done, and
isn't staring at a blank screen, or a Please Wait with a cheesy javascript
controlling a ficticous "percent done" bar. While processing files in a
folder, I want to report to the user which file is being processed, it's
number out of the total qty of files, etc.
 
you have two options:

1) use a background thread to process the files, so the orginal request can
return a page. have the browser poll the status of the thread using the
refresh meta tag.

2) turn off page buffering. keep pushing the status info to the browser with
Response.Write() and Response.Flush() . the html must be simple for the
browser to render it before all the page's html has been recieved.

-- bruce (sqlwork.com)
 
You can have the thread update a field, perhaps a count of the number
of files processed, or the percentage complete if it can determine the
total amount of work it needs to finish.
 
Bruce Barker already gave that as Option 1. I'd like to know HOW to
impliment it (as previously requested).
 
This is getting obnoxious. He gave you a hint to put you on the right
path - try reading the help files within .NET and/or searching the web.
How do I do x? is a lot different than will you do x for me? Try to
learn, it'll help you in the long run!

Rasdan
 
Again, my question still is and still will be "How do I do poll the status
of a thread? Notice in this statement I ask "how do I do x not "will you do
x for me". Thanks for being such a jerk, James!
 

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

Back
Top