다중 파일 등록


  <asp:FileUpload ID="fuUpload" runat="server" CssClass="button" Width="400px" AllowMultiple="true" />


for (int i = 0; i < fuUpload.PostedFiles.Count; i++)
{
     string filenames = fuUpload.PostedFiles[i].FileName;
     string path = string.Format(CultureInfo.InvariantCulture, SiteStrings.NewObjectPath, _root, filenames);
     fuUpload.SaveAs(path);

}

Previous
Next Post »