string str = @"~/Download/ExchangeRate@200903270959.txt";
Response.Clear();
Response.ContentType = "application/save-as";
Response.Charset = "UTF-8";
Response.AddHeader("Content-Disposition", "attachment; filename=" + System.Web.HttpUtility.UrlEncode(str.Trim()));
Response.WriteFile(str);
Response.End();
沒有留言:
張貼留言