string strFilename_org=@"B:\1402\tmuninst1402.ini";System.IO.FileInfo file = new System.IO.FileInfo(strFilename_org);
Response.Clear();
string filename=@"e:\bak\"+strFilename_org;
filename=HttpUtility.UrlEncode(filename).Replace('+',' ');
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename);
Response.AddHeader("Content-Length", file.Length.ToString());
Response.ContentType ="text/html";
Response.WriteFile(file.FullName);
Response.End();
Page.RegisterStartupScript("alert","<script language='javascript'> alert('文件成功下载!!')</script>");