这里写个用C#来做文件下载的功能,功能如下图所示,用户点击模板下载按钮后弹出新建下载任务的弹框进行文件的下载。
HTML代码:
<div class="row setPadding">
<div class="col-lg-6 col-md-6 col-sm-6 text-left">
<button class="btn btn-primary" id="Download" onclick="window.location.href = '/StudentInformationManagement/StudentInformation/DownloadTemplate'">模板下载</button>
<button class="btn btn-info" id="Import">导入</button>
<button class="btn btn-info" id="Export">导出</button>
<button class="btn btn-success" id=