摘要: using System;using System.Collections.Generic;using System.Text;using System.Text.RegularExpressions;namespace DTcms.Common{ public class EnCh {... 阅读全文
posted @ 2016-01-08 23:15 请叫我七哥 阅读(1224) 评论(1) 推荐(0) 编辑
摘要: protected void ToExcel() { //新建一个Gridview,原因:避免当前窗口GridView外层没有直接跟form标签,从而避免“gridview1未包含在run='server'”的错误。 ... 阅读全文
posted @ 2016-01-08 22:25 请叫我七哥 阅读(245) 评论(0) 推荐(0) 编辑
摘要: 注意这种方法,导出的excel没有网格线当在导出Execl或Word的时候,会发生只能在执行 Render() 的过程中调用 RegisterForEventValidation的错误提示。下面的2中方法是在网上找到的,没有应用:1.修改web.config(不推荐) 2.直接在导出Execl的页面... 阅读全文
posted @ 2016-01-08 21:37 请叫我七哥 阅读(197) 评论(0) 推荐(0) 编辑