Private Sub DownloadFile()
Response.ContentType = ContentType
Response.AppendHeader("Content-Disposition", _
"attachment; filename=myFile.txt")
Response.WriteFile(Server.MapPath("~/uploads/myFile.txt"))
Response.Flush()
System.IO.File.Delete(Server.MapPath("~/uploads/myFile.txt"))
Response.End()
End Sub
Showing posts with label Export A File and Delete it from Server. Show all posts
Showing posts with label Export A File and Delete it from Server. Show all posts
Saturday, March 6, 2010
Subscribe to:
Posts (Atom)
