Click here to Skip to main content
15,896,348 members
Please Sign up or sign in to vote.
2.00/5 (1 vote)
See more:
Hi Friends I am using Asp FileUpload to upload Multiple file

and Using this Code

C#
HttpFileCollection hfc = Request.Files;
string savePath = @"~/Attachment\";
int len = 0;
for (int i = 0; i < hfc.Count; i++)
{
    HttpPostedFile hpf = hfc[i];
    len = len + hpf.ContentLength;
}


But on run time it showing File Conut=0
Posted
Updated 22-May-12 4:01am
v2
Comments
Manfred Rudolf Bihy 22-May-12 10:01am    
Added code tags.
Ed Nutting 22-May-12 10:08am    
Unfortunately, unless there happens to be some particular thing that always causes this, which I don't think there is, this is hard to answer. If you could post your JavaScript code as well and check your JavaScript for any errors that would be helpful since the error is probably in your JavaScript/jQuery code not the server code. Please use the Improve Question link above.

Thanks,
Ed

P.s. This project may be of help to you: http://blueimp.github.com/jQuery-File-Upload/
Ajay Kumar Tiwari From Mumbai 24-May-12 1:14am    
Thanky you Friend
Wael Al Wirr 8-Jun-12 12:18pm    
use the ajaxtoolkit
http://www.asp.net/ajaxLibrary/AjaxControlToolkitSampleSite/Default.aspx

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