Click here to Skip to main content
15,908,175 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi

I am currently having a bit of an issue.

I have a program that when a user select a zip file to upload to the database, the file is unzipped all the text files are read and the files then deleted.

Problem i am having is the text files are huge upto 300kb per text files so naturally the process is slow because of the quantity of data.

the process is as follows
User selects a file
once the file is selected clicks a button to update the database
the process that runs once the button is clicked is
the files get unzipped to a holding folder.
the .txt files are then read changed to .old and once all the files have been read they are deleted.

How could i show my users on the screen that the proccess is running and x amount of records have been updated after either every 30seconds or after a file has been read?
Posted
Comments
thatraja 28-Oct-13 5:00am    
win or web?
isi19 28-Oct-13 5:18am    
Web

1 solution

You could show the upload progress based on file size but upload progress based on file content(like how many lines progressed)? I won't say impossible but that'll take lot of work. Check this article
ASP.NET File Upload with Progress Bar[^]
 
Share this answer
 
Comments
isi19 29-Oct-13 2:30am    
See the problem i am having is when users select a zip file, all the files from that zip folder are placed in a temp folder which gets read and there is a count of each line that get read, how would i be able to display or update the label while the code is running

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900