file download code
string filePath = dtSummaryData.Rows[0]["Documentpath"].ToString();
Response.ContentType = ContentType;
Response.AppendHeader("Content-Disposition", "attachment; filename=" + Path.GetFileName(filePath));
Response.WriteFile(filePath);
Response.End();
Comments
Post a Comment