I have five file in temp folder for download that file. my aim is download all file but now it download first file.
I try this code for download all file
Dim strSrcFolder As String = Server.MapPath("~/TempFiles/senthil/PDF/") Dim dinfo As New DirectoryInfo(strSrcFolder) For Each finfo As FileInfo In dinfo.GetFiles() Dim stringFName As String = finfo.Name
Response.ContentType = "application/pdf"
Response.AppendHeader("Content-Disposition", "attachment; filename=" + HttpUtility.UrlEncode(stringFName, System.Text.Encoding.UTF8))
Response.TransmitFile(Server.MapPath("~\TempFiles\senthil\PDF\" + stringFName))
Response.End()
Next