![](https://img-blog.csdnimg.cn/20201014180756724.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
asp-net学习
qq_40457832
这个作者很懒,什么都没留下…
展开
-
欢迎使用CSDN-markdown编辑器
ASP.net GridView导出Excel代码段public void ToExcel(System.Web.UI.Control ctl) { HttpContext.Current.Response.AppendHeader("Content-Disposition", "attachment;filename=Excel.xls"); HttpCon转载 2017-10-12 18:34:22 · 195 阅读 · 0 评论 -
ASP.net 导出Excel表方法汇总
1、由dataset生成public void CreateExcel(DataSet ds,string typeid,string FileName) { HttpResponse resp; resp = Page.Response; resp.ContentEncoding = System.Text.Encoding.GetEncoding("GB2312");转载 2017-10-12 18:45:34 · 217 阅读 · 0 评论 -
ASP.net 写入日志到文本文件
using System; using System.Collections.Generic; using System.Web; using System.IO; using System.Text; /// <summary> /// Summary description for NetLog /// </summary> public class NetLog转载 2017-10-13 15:30:38 · 3382 阅读 · 0 评论