string filePath= ConfigurationManager.AppSettings["physicalpath"].ToString() + "Members\\filename";;
Response.AddHeader("Content-Disposition", "attachment;filename=\"" + filePath + "\"");
Response.TransmitFile(filePath);
Response.End();
Response.AddHeader("Content-Disposition", "attachment;filename=\"" + filePath + "\"");
Response.TransmitFile(filePath);
Response.End();
No comments:
Post a Comment