I am using asp.net fileupload control for multiple files uploading,I want to persist file upload control value. I got solution for Single file Here I am uploading multiple files to server, and checking each file for some special code which is stored in Database, If code is found in file then an email is sent to that user, If not then I am showing Modal Popup for selecting a User. When no code found,its showing modal popup but Removing the Selected File. I want that after Showing Modal It will still display the selected files. But I am uploading multiple files, so this solution not working for me,Below is my code
HttpFileCollection hfcc;
hfcc = Request.Files;
for (int i = 0; i < hfcc.Count; i++)
{
HttpPostedFile hpf = hfcc[i];
if(codefound)
{
hpf.SaveAs(//Folder Path and filename);
}
else
{
//Show Modal Popup
}
}
How can I use Session in this scenario for maintaining value. I have tried making session like described in my previous question, but in that case i am not getting any file.