【发布时间】:2013-10-07 07:21:30
【问题描述】:
我的代码是
请给我解决方案...谢谢
bool b = false;
string str=Server.MapPath("~/Files/"+filepath);
// Send the file to the browser
Response.AddHeader("Content-type", filetype);
Response.AddHeader("Content-Disposition", "attachment; filename=" + filename);
Response.TransmitFile(Server.MapPath("~/Files/" + filepath));
Response.Flush();
// HttpContext.Current.ApplicationInstance.CompleteRequest();
Response.End();
b = true;
【问题讨论】:
-
外部异常是什么?如果我们不知道实际问题是什么,我们就无法回答。内部异常无关紧要。
-
您是否在代码中重定向?
-
外部异常是 --- 线程被中止。
标签: c# asp.net entity-framework