摘要: 1、^(-)?(\d+|,\d{3})+(\.\d{0,4})?$^(-)?(\d+|,\d{3})+(\.\d{0,mumber})?$货币验证,小数点后几位取决于{0,number}中的mumber\d+(\.\d\d)?货币验证:小数点后两位验证正则表达式30分钟入门教程http://unibetter.com/deerchao/zhengzhe-biaodashi-jiaocheng-se... 阅读全文
posted @ 2009-11-14 19:18 地、 阅读(224) 评论(0) 推荐(0) 编辑
摘要: public void showScript(string pMessage) { this.ClientScript.RegisterStartupScript(this.GetType(), "", "<script language = javascript>alert('" + pMessage + "')</script>"); //脚本 Type cstype ... 阅读全文
posted @ 2009-11-11 16:05 地、 阅读(380) 评论(0) 推荐(0) 编辑
摘要: 1、GridView1_RowDataBoundprotected void GridView1_RowDataBound(object sender, GridViewRowEventArgs e) { //这里的处理是为了回显之前选中的情况 if (e.Row.RowIndex > -1 && this.SelectedItems != null) { DataRowVi... 阅读全文
posted @ 2009-11-11 14:05 地、 阅读(257) 评论(0) 推荐(0) 编辑
摘要: 一、绿色版tomcat 5.5.20第一句不带引号set CATALINA_HOME=C:\Program Files\Apache Software Foundation\apache-tomcat-5.5.20第二句call "C:\Program Files\Apache Software Foundation\apache-tomcat-5.5.20\bin\service.bat" in... 阅读全文
posted @ 2009-11-10 15:16 地、 阅读(2199) 评论(0) 推荐(0) 编辑
摘要: 1、数据源,继承java.sql.datasource,属于dbcp连接池中的数据源。2、DBCP是用来培植连接池的需要的包:Commons-Pool (下载地址:http://jakarta.apache.org/commons/pool/)提供了一个一般对象池的连口,而且包含实现了通常池工具箱。Commons-DBCP(下载地址:http://jakarta.apache.org/common... 阅读全文
posted @ 2009-11-07 11:12 地、 阅读(582) 评论(0) 推荐(0) 编辑
摘要: 配置httpRuntime也可以让FileUpload上传更大的文件,不过设置太大了会因用户将大量文件传递到该服务器而导致的拒绝服务攻击(属性有说明)<httpRuntime><httpRuntime useFullyQualifiedRedirectUrl="true|false" maxRequestLength="size in kbytes" executionTimeo... 阅读全文
posted @ 2009-10-29 09:12 地、 阅读(316) 评论(0) 推荐(0) 编辑
摘要: protected void btnup_Click(object sender, EventArgs e) { if (lb_busspot.SelectedIndex == -1) { return; } //获得连续选中的项索引 int[] Indices = lb_busspot.GetSelectedIndices(); int length = Indices.Length; stri... 阅读全文
posted @ 2009-10-28 16:54 地、 阅读(602) 评论(0) 推荐(1) 编辑
摘要: 1、一般情况下,Response.Redirect 方法是在服务器端进行转向,因此,除非使用 Response.Write("<script>window.location='http://dotnet.aspx.cc';</script>") 方法外,是不能在新窗口打开所指定的 URL 地址的。但是,如果仔细分析一下,如果设置 form 元素的 target 属性,还是有... 阅读全文
posted @ 2009-10-28 10:31 地、 阅读(3696) 评论(1) 推荐(2) 编辑
摘要: ExtJS前身,Yahoo!User Interface(YUI) Library,一套稳定,强大的界面开发套件。在2006年上半年,由互联网著名运营商---雅虎公司,推出。YUI Library为浏览器运行内容交付平台带来了帮助。但提供用户界面控件方面不足。后经Jack Slocum的努力,扩展了YUI Library ,并提出自己独立的解决方案,使其成为一套覆盖企业级应用的界面库。并将其更名为... 阅读全文
posted @ 2009-09-18 21:28 地、 阅读(250) 评论(0) 推荐(0) 编辑
摘要: iframe框架:iframe框架中引用default.asp页面,<html>...<body><iframe src="default.asp" scrolling="no" id=xxx frameborder="0" width="760" height="100%"></iframe></body></html>要引... 阅读全文
posted @ 2009-09-17 13:44 地、 阅读(380) 评论(0) 推荐(0) 编辑