Show Progress label when saving to database

  •  06-23-2010, 5:11 AM

    Show Progress label when saving to database

    Hi,
     
    I have successfully created a upload session, and after upload, the FileUploaded is trigged.
    In this I save the file to a database, and I have portioned this up in smaller units, using column.write to a varbinary(max) column, since the upload will deal with files several hundred MB large. The problem is that it will take several seconds to do these savetoDB calls. So how can I within my FileUploaded procedure use a control to show the progress. Let's say as a simple label:
    for(int step; step<=steps;step++)
    {
       Label1.text = "Saving uploaded file to database step "+step+" of "+steps;
       ... ...
    }
    I have no problem with the portioning nor the sql calls, but I can't manage to refresh a label within the FileUploaded procedure.
     
    Thanks in advance for your help
    /Magnus
View Complete Thread