摘要: 在CSDN上有人问:C#中有没有判断一个string类型变量是否为数字类型的系统函数(如vb中的IsNumeric(s))?答案肯定是没有的。有人提议用int.Parse(string)的方法,然后通过捕获异常来判断返回的值。更好的方法是用正则表达式:1publicintIsNumeric(stringstr)2{3inti;4if(str!=null&&Regex.IsMatch... 阅读全文
posted @ 2008-04-24 17:23 Happiness... 阅读(436) 评论(1) 推荐(0) 编辑
摘要: 1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Text;45namespaceChinaValue.CommonV20086{7/**////<summary>8///将字符串转换成任意其他数据9///</summary>10publicstaticclassConvertStr11{12/**////... 阅读全文
posted @ 2008-04-24 16:58 Happiness... 阅读(666) 评论(0) 推荐(0) 编辑
摘要: 1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Text;4usingSystem.Text.RegularExpressions;56namespaceChinaValue.CommonV20087{8/**////<summary>9///各种数据检测的逻辑10///</summary>11publi... 阅读全文
posted @ 2008-04-24 16:55 Happiness... 阅读(299) 评论(0) 推荐(0) 编辑
摘要: Request1usingSystem;2usingSystem.Web;3usingSystem.Text;4usingSystem.Text.RegularExpressions;56namespaceChinaValue.CommonV20087{8/**////<summary>9///Request操作类10///</summary>11publicclassCV... 阅读全文
posted @ 2008-04-24 16:54 Happiness... 阅读(721) 评论(0) 推荐(0) 编辑
摘要: UTILITYUtility1usingSystem;2usingSystem.Collections.Generic;3usingSystem.Text;4usingMicrosoft.Practices.EnterpriseLibrary.Logging;5usingSystem.Security.Cryptography;6usingSystem.Web;7usingSystem.Colle... 阅读全文
posted @ 2008-04-24 16:28 Happiness... 阅读(737) 评论(0) 推荐(0) 编辑
摘要: 还原数据库相关 如何将数据库还原至任意位置 1、执行 restore filelistonly FROM disk='E:\ChinaValue_db_200612250200.BAK' 获得当前备份文件的逻辑名 2、使用windows账户或者sa登陆执行以下SQL语句: restore DATABASE [ChinaValue] FROM disk='E:\ChinaValue_d... 阅读全文
posted @ 2008-04-24 15:46 Happiness... 阅读(436) 评论(0) 推荐(0) 编辑
摘要: 一、基础 1、说明:创建数据库 CREATE DATABASE database-name 2、说明:删除数据库 drop database dbname 3、说明:备份sql server --- 创建 备份数据的 device USE master EXEC sp_addumpdevice 'disk', 'testBack', 'c:\mssql7backup\MyNwind_... 阅读全文
posted @ 2008-04-24 15:42 Happiness... 阅读(212) 评论(0) 推荐(0) 编辑
摘要: 数据绑定以及Container.DataItem的具体分析 灵活的运用数据绑定操作 绑定到简单属性: 绑定到集合:' runat=“server”> 绑定到表达式: 绑定到方法返回值: 绑定到Hashtable: 绑定到ArrayList: 若数组里里放的是对象则可能要进行必要的转换后再绑定如: 绑定到DataView,DataTable,DataSet: 1或2 要格式化则: 12绑定到D... 阅读全文
posted @ 2008-04-24 15:10 Happiness... 阅读(108) 评论(0) 推荐(0) 编辑
摘要: 正则表达式参考 Capture 用于单个表达式捕获结果 CaptureCollection 用于一个序列进行字符串捕获 Group 表示单个捕获的结果 GroupCollection 表示捕获组的集会 Match 表示匹配单个正则表达式结果 MatchCollection 表示通过迭代方式应用正则表达式到字符串中 Regex 表示不可变的正则表达式 RegexCompilationI... 阅读全文
posted @ 2008-04-24 14:32 Happiness... 阅读(116) 评论(0) 推荐(0) 编辑
Happiness.....