THHP 传输文件的问题(高分求教)
public class WebForm1 : System.Web.UI.Page
{
private void Page_Load(object sender, System.EventArgs e)
{
Response.ContentType = "application/octet-stream"; //可有可无
Response.AddHeader("Content-Disposition", "attachment; filename=1.zip");//可有可无
Response.WriteFile("D:\\Tmp\\Test\\D00169330377.zip");
}
}
传输的是.zip文件,客户端用VC写,应该怎么写才能不让收到的文件没有HTML代码啊