Response.Clear();
Response.Buffer = true;
Response.CharSet = "GBK";
Response.ContentEncoding = System.Text.Encoding.UTF8;
Response.ContentType = "application/vnd.ms-excel";
Response.AppendHeader("Content-Disponsition","attachment;filename=" + name);
Response.BinaryWrite(bytes);
Response.End();
这段代码用IE6访问时下载一切正常,用Win2003 IE8时进度条显示100%但是对话框要相当长的时间才关,而文件要等对话框关掉才出来,求助啊。