Bu indirmek için
using (var client = new WebClient())
{
client.DownloadFile("http://ovh.net/files/10Gio.dat", "10Gio.dat");
}bu silmek için
private void DownloadFile()
{
Response.ContentType = ContentType;
Response.AppendHeader("Content-Disposition", "attachment; filename=myFile.txt");
Response.WriteFile(Server.MapPath("~/uploads/myFile.txt"));
Response.Flush();
// Delete the file just before execute Response.End()
System.IO.File.Delete(Server.MapPath("~/uploads/myFile.txt"));
Response.End();
}bunlara bide çalışma zamanı ekleyip birleştirdikmi bide çalışma butonu tamamdır