for (int i = 1; i < 25; i++ ) { FileUpload f = new FileUpload(); f = "FileUpload" + i.ToString(); string filename = Path.GetFileNameWithoutExtension(f.PostedFile.FileName); string fileextension = Path.GetExtension(FileUpload1.PostedFile.FileName); FileUpload1.SaveAs(Server.MapPath("~/PhotoGallery/" + filename + fileextension)); }
Error Cannot implicitly convert type 'string' to 'System.Web.UI.WebControls.FileUpload'
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)