Refresh label on page
Posted on 2010-09-07
I have a page with a very long running script that loops round reading many individual files.
As this takes so long I would like to know where the job has progressed to.
I have a label on the page called lblStatus and each time the function loops and reads a new file
The new file name is held in a variable called "InputFile"
I would like lblStatus to say which file it is and update the page each time this changes. The job will continue to run so the page has not posted back yet.
in VB is there anything I can add to the folloowing so that this works
lblStatus.Text = ""
lblStatus.Text = "Processing " + InputFile
If not possible in VB what are my options?