我正在开发 ASP.NET Web 表单应用程序。我正在我的 Web 服务代码中的服务器端处理文件。这个网络方法将返回我文件内存流。我想使用 javascript 方法在客户端使用这个内存流。在 js 方法中处理后,我将打开弹出窗口以下载该内存流。
function ExportExel(){
$.ajax({
type: "POST",
url: baseUrl + '/' + "WebServices/ExtraInfoWebService.asmx/Urlhttphandler",
data: {},
contentType: "application/json; charset=utf-8",
dataType: "json",
success: function (msg) {
//********some code require here.... *************
}
});
}
在 msg.di 中获取内存流我需要这里的代码
//********some code require here.... *************
显示文件下载弹出窗口。任何帮助/指针都会对我有所帮助。