protected void get_download(string fl_path){
try
{
string filepath = fl_path;
string filename = System.IO.Path.GetFileName(filepath);
Response.Clear();
Response.ClearHeaders();
Response.Buffer=false;
Response.ContentType = "application/octet-stream";
//Response.ContentEncoding=System.Text.Encoding.GetEncoding("utf-8");
Response.AddHeader("Content-Disposition", "attachment; filename="+System.Web.HttpUtility.UrlEncode(filename,Encoding.UTF8));
Response.WriteFile(filepath);
Response.Flush();
Response.End();
}
catch(Exception E){
alert("没有找到您所要下载的数据!");
}
}
try
{
string filepath = fl_path;
string filename = System.IO.Path.GetFileName(filepath);
Response.Clear();
Response.ClearHeaders();
Response.Buffer=false;
Response.ContentType = "application/octet-stream";
//Response.ContentEncoding=System.Text.Encoding.GetEncoding("utf-8");
Response.AddHeader("Content-Disposition", "attachment; filename="+System.Web.HttpUtility.UrlEncode(filename,Encoding.UTF8));
Response.WriteFile(filepath);
Response.Flush();
Response.End();
}
catch(Exception E){
alert("没有找到您所要下载的数据!");
}
}