Click here to Skip to main content
15,920,708 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi
i have 10 fileupload control and 10 textbox which have textbox change event autopostback true.
Once user select files in file upload controls and in any selection when page’s post back event occurs, file upload control loose it’s value. It was very annoying situation for me to maintain the state of FileUpload Control. I search around so many articles and sites but didn't get any fixed solution. Then I decided to do it myself and publish for other developers. This is very common problem with many developers.
Posted
Updated 9-Sep-13 1:01am
v2

Hi,

When user upload the file save immedaitley into some local folder / save in server(Create temporary folder). When page refresh take uploaded file from local folder / from server temporary folder. Once user saved succesfully delete from local folder /server temporary folder.

Thank you and best regards
 
Share this answer
 

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