As per
MSDN[
^], you cannot use for each with
UploadImages.PostedFile
since it is not a collection modify your code to...
if(UploadImages.HasFile)
{
HttpPostedFile myfile = UploadImages.PostedFile)
myfile.SaveAs(System.IO.Path.Combine(Server.MapPath("~\\uploadfile\\"),myfile.FileName));
listofuploadedfiles.Text += String.Format("{0}<br />", myfile.FileName);
}
[Edit member="Tadit"]
Corrected formatting issues.
[/Edit]