I am using the htmlinputfile control to upload files.
The web page that is used to upload files into a directory also displays a list of the files in that directory. I refresh that list on page_load (regardless of page.ispostback value) so I thought that the list would always be up-to-date.
Of course, that's not the case -- it looks like the actual file upload executes in a different process so that the page may load before the file upload is complete.
How can I halt code execution until the file is uploaded? Or -- even better -- give the user some feedback as to the status of the upload and then reload the page once the file is uploaded?
Thanks. -Brad
The web page that is used to upload files into a directory also displays a list of the files in that directory. I refresh that list on page_load (regardless of page.ispostback value) so I thought that the list would always be up-to-date.
Of course, that's not the case -- it looks like the actual file upload executes in a different process so that the page may load before the file upload is complete.
How can I halt code execution until the file is uploaded? Or -- even better -- give the user some feedback as to the status of the upload and then reload the page once the file is uploaded?
Thanks. -Brad