标签:
public void ProcessRequest(HttpContext context)
{
context.Response.ContentType = "text/plain";
string encodeFileName = HttpUtility.UrlEncode("aaa.txt");
context.Response.AddHeader("Content-Disposition", string.Format("attachment;filename=\"{0}\"", encodeFileName));
context.Response.WriteFile("aaa.txt");
}
标签:
原文地址:http://www.cnblogs.com/chao2014/p/4948790.html