Content-Disposition:attachment、inline

HttpContext.Current.Response.ContentType = "application/octet-stream";
HttpContext.Current.Response.AddHeader("Content-Disposition", "attachment; filename=\"" + UTF_FileName(filename) + ".doc\";");

//attachment — 作为附件下载

//inline — 在线打开