摘要: "^\d+$" //非负整数(正整数 + 0) "^[0-9]*[1-9][0-9]*$" //正整数 "^((-\d+)|(0+))$" //非正整数(负整数 + 0) "^-[0-9]*[1-9][0-9]*$" //负整数 "^-?\d+$" //整数 "^\d+(\.\d+)?$" //非负浮点数(正浮点数 + 0) "^(([0-9]+\.[0-9]*[1-9][0-9]*)|([0... 阅读全文
posted @ 2010-08-30 10:50 SoLo. 阅读(279) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--foreach(Controlcontrolinthis.form1.Controls){if(control.GetType().Name=="TextBox"){((TextBox)control... 阅读全文
posted @ 2010-08-24 15:19 SoLo. 阅读(277) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--在C#强制转换中,(int),Int32.Parse()和Convert.toInt32()三种方法有何区别?int关键字表示一种整型,是32位的,它的.NETFramework类型为System.I... 阅读全文
posted @ 2010-07-08 10:58 SoLo. 阅读(734) 评论(2) 推荐(1) 编辑
摘要: [代码] 阅读全文
posted @ 2010-07-01 17:08 SoLo. 阅读(386) 评论(2) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--功能:将查询的结果放到一个新表中去,查询结果可以来源于一个表或多个表SQLSERVER中使用SELECT…INTO语句按照使用场合可以分为以下几类:1.实现全表备份:如:SELECT*IN... 阅读全文
posted @ 2010-06-23 14:43 SoLo. 阅读(256) 评论(0) 推荐(0) 编辑
摘要: if(!IsPostBack),什么回事?? 答1:Page.IsPostBack 属性获取一个值,该值指示该页是否正为响应客户端回发而加载,或者它是否正被首次加载和访问。如果是为响应客户端回发而加载该页,则为 true;否则为 false。if(!IsPostBack){....}表示该页面首次加载时需要做哪些事情_________________________________________... 阅读全文
posted @ 2010-06-22 14:14 SoLo. 阅读(469) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--IndexOf-搜索函数intString.IndexOf(stringvalue);返回字符串中第一次出现子字符串的字符位置,从0开始,未找到子字符串返回-1。intString.IndexOf(s... 阅读全文
posted @ 2010-06-18 15:38 SoLo. 阅读(1094) 评论(1) 推荐(0) 编辑
摘要: 一、通用分页存储过程 首先创建一个通用的存储过程代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--ALTERPROCEDURE[dbo].[ProcDataPaging](@tblNamenvarchar(200),----要显示的表或多个表的连接@... 阅读全文
posted @ 2010-06-09 15:59 SoLo. 阅读(649) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--CREATEPROCEDUREGetRecordFromPage@tblNamevarchar(255),--表名@fldNamevarchar(255),--字段名这里测试了一下,只能一个字段,@P... 阅读全文
posted @ 2010-06-09 14:56 SoLo. 阅读(397) 评论(0) 推荐(0) 编辑
摘要: 代码Code highlighting produced by Actipro CodeHighlighter (freeware)http://www.CodeHighlighter.com/--declare@TotalCountintdeclare@TotalPageCountintexecP_viewPage_A'type1','*','id','','idasc',1,0,4,3,@T... 阅读全文
posted @ 2010-06-09 14:41 SoLo. 阅读(1285) 评论(0) 推荐(0) 编辑