ASP.NET - download and save location
Asked By msakt on 29-Jun-12 01:25 AM
Byte[] bytes = (Byte[])dt.Rows[0]["BillImage"];
Response.Buffer = true;
Response.Charset = "";
Response.Cache.SetCacheability(HttpCacheability.NoCache);
Response.ContentType = dt.Rows[0]["BillImage"].ToString();
Response.AddHeader("content-disposition", "attachment;filename=" + dt.Rows[0]["comments"].ToString() + ".jpg");
//Response.TransmitFile(FilePath);
Response.BinaryWrite(bytes);
Response.Flush();
this code is working for download but default save in downloads...i want save selected location c,d or e colon