动态生成TXT文件供下载
stringFileName="FileName";Response.ContentType="Application/octet-stream";Response.AppendHeader("Content-Disposition","p_w_upload;filename=\""+System.Web.HttpUtility.UrlEncode(FileName,System.Text.Encoding.UTF8)+".txt\"");HttpContext.Current.Response.ContentEncoding=System.Text.Encoding.GetEncoding("utf-8");Response.Write("文本内容");Response.Flush();Response.End();
声明:本站所有文章资源内容,如无特殊说明或标注,均为采集网络资源。如若本站内容侵犯了原著者的合法权益,可联系本站删除。