随笔分类 - Asp.Net Tech
Excel 导出组件,10W级数据5秒内导出
摘要:Excel 数据导出组件,10W级数据5秒内导出,支持B/S,C/S架构。全套内封组件,用户自配导出数据项和导出模式,导出模式支持页面流输出和Xls文件存储。您的操作使用很简单,只需将您的数据和格式交由组件即可。 protected void btnExport_Click(object sender, EventArgs e){ string xmlTemplatePath = Server.MapPath(@"ExportXML\SummaryStudentLearningExport.xml"); string xlsFileName = "学员学习情况汇总
阅读全文
Reporting Service RDLC 数据换行解决方案
摘要:1. Reporting Service 查询数据从数据库,并根据特殊符号进行折行2. 点击报表,右键-》属性,弹出属性框3. 选择代码(Code) 添加如下代码 4. 选择数据项单元格->表达式: =Code.ChangeLine("数据项","换行替换符号")
阅读全文
Transfer: Javascript实现网页水印(非图片水印)
摘要:Javascript实现网页水印(非图片水印) 1 概述1.1 定义 在一些B/S结构的应用系统中,有很多页面是需要有水印的。常见的就是公文系统、合同系统等。大家常常关注的是网站图片增加水印,而很少关注页面水印。刚去Google了一圈,关于页面水印的文章的数量为几乎为0. 本文中,流牛木马就与大家一起交流一下有关制作网页水印的心得。 本文讨论以下的情形: 新增水印的方法需要用Javascript...
阅读全文
解决ValidationSummary Control 发生时,页面置顶问题, 即:window.scrollTo(0, 0)
摘要:If we use ValidationSummary control to show error or invalid message on page, but the page will jump to top when click button. If you find build code in webResource file, will find the rease is that ...
阅读全文
DropDownList 固定width,options 宽度自适应
摘要:一开始觉得很简单,只要监听newSelectObj的onmouseover事件,当鼠标离开它的时候,删除newSelectObj就行了,但事实上不是这样的,因为当移动鼠标去选择newSelectObj的option时候,它就认为已经离开了newSelectObj,会马上删除newSelectObj,因此,这样的修改将导致无法选择option。 办法总是能想出来的,经过一上午的多次试验、修改,我终...
阅读全文
posted @ 2010-02-05 17:01
Rober.Xin
WEB打印大全(转)
摘要:导出excel打印privatevoidImageButton1_Click(objectsender,System.Web.UI.ImageClickEventArgse){Response.Clear();Response.Buffer=true;Response.AppendHeader("Content-Disposition","attachment;filename=Borrow.xl...
阅读全文
日期验证正则表达式
摘要:^( ( (0?[13578]|1[02])- (0?[1-9]|[12]\d|3[01])- ( (1[6-9]|[2-9]\d) \d{2} ) )| ( (0?[13456789]|1[012])- (0?[1-9]|[12]\d|30)- ( (1[6-9]|[2-9]\d) \d{2} ) )| ( 0?2- (0?[1-9]|1\d|2[0-8])- ((1[6-9]|[2-9]\...
阅读全文
浙公网安备 33010602011771号