如何在ASP.NET中的服务器位置保存或下载excel文件 [英] How to save or download excel file on server location in ASP.NET

查看:77
本文介绍了如何在ASP.NET中的服务器位置保存或下载excel文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将excel文件下载到特定的服务器位置,同时单击ExportToExcel按钮。当用户点击导出到excel按钮现在excel下载本地下载文件夹而不是这个我想在服务器位置下载excel。



我尝试了什么:



我曾尝试过使用wcf服务但任何其他选项请告诉我

I want to download excel file to specific server location while click on ExportToExcel button.As when user click on export to excel button for now excel gets download on local download folder instead of this i want to download that excel on server location.

What I have tried:

I had tried using wcf service but any other option please let me know

推荐答案

您无法指定文件的下载位置。你怎么知道客户端机器上哪些路径有效?
You can't specify where the file is downloaded to. How are you going to know what paths are valid on the client machine anyway?


这篇关于如何在ASP.NET中的服务器位置保存或下载excel文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆