本文介绍了ASP.NET下Excel下载模板、导入、导出操作,供大家参考,具体内容如下 1.下载模板功能 protected void btnDownload_Click(object sender, EventArgs e) { var path = Server.MapPath((upfiles\\) + test.xlt); //upfiles-文件夹 test.xlt-文件 var name = test.xlt; try { var file = new FileInfo(path); Response.Clear(); Response.Charset