cymxiao

博客园 首页 新随笔 联系 订阅 管理

2013年11月27日 #

摘要: GridView导出函数内容如下 string attachment = "attachment; filename=Contacts.xls"; Response.ClearContent(); Response.AddHeader("content-disposition", attachment); Response.ContentType = "application/ms-excel"; StringWriter sw = new StringWriter(); HtmlTextWriter htw = new HtmlTe 阅读全文
posted @ 2013-11-27 21:49 萧雨 阅读(238) 评论(0) 推荐(0) 编辑

2009年2月28日 #

摘要: 问题描述: 写一个验证Email的正则表达式,但不可以是c.com作为域名。 符合:^[\w\._-]+\@[\w_-]+\.[\w\._-]+$ 不允许@c.com 或者@*.c.com 解决方法: 貌似正则表达式中只有'|'(Or),没有 与关系,所以只好同时用2个正则表达式的Validator控件(.net) msdn查到:非匹配用(?!pattern) 网上查到: 匹配非“非内容”的... 阅读全文
posted @ 2009-02-28 16:12 萧雨 阅读(2147) 评论(1) 推荐(0) 编辑