Alright guys? I have a problem .. I want to provide a link to download the file on the site. Look at the method:
private void startDownload(string URL)
{
string path = MapPath(URL);
string name = Path.GetFileName(path);
string ext = Path.GetExtension(path);
Response.ContentType = "Application/pdf";
Response.AppendHeader("content-disposition",
"attachment; filename=" + name);
Response.WriteFile(path);
Response.End();
}
The download does not start, can someone help me?
tks
Alex Vidotto
