Response.Clear(); Response.ClearContent(); Response.ClearHeaders(); stringurlName = HttpUtility.UrlEncode(f.f_filename,System.Text.Encoding.UTF8);Response.AddHeader("Content-Disposition", "attachment;filename=" + urlName);Response.AddHeader("Content-Length", info.Length.ToString());Response.AddHeader("Content-Transfer-Encoding", "binary"); Response.ContentType= "application/octet-stream"; Response.ContentEncoding =System.Text.Encoding.GetEncoding("gb2312"); Response.WriteFile(info.FullName);Response.Flush(); Response.End();每个response 的什么意思都 ????
1 回答
- 1 回答
- 0 关注
- 278 浏览
添加回答
举报
0/150
提交
取消