【发布时间】:2010-10-05 06:50:28
【问题描述】:
我的 ASP.NET 应用程序使用下面的代码将 PDF 文件返回给用户
Context.Response.Clear();
Context.Response.ContentType = "application/pdf";
Context.Response.TransmitFile(optionEntityCmd.PathToSave);
Context.Response.End();
此代码显示另存为浏览器对话框,是否可以直接在浏览器中加载 PDF 文件而不是另存为对话框?
【问题讨论】: