上一页 1 ··· 25 26 27 28 29
摘要: #region 数据有效性检查 //判断区号 public static bool IsAreaCode(string input) { return ((IsNumber(input) && (input.Length >= 3)) && (input.Length <= 5)); } //判断是 阅读全文
posted @ 2012-11-28 17:25 天天代码码天天 阅读(4) 评论(0) 推荐(0) 编辑
摘要: #region 数据操作函数 //四舍五入 public static double Round(double dValue, int iDigs) { return Math.Round(dValue, iDigs); } //转换为Boolean public static bool CBool 阅读全文
posted @ 2012-11-28 17:24 天天代码码天天 阅读(5) 评论(0) 推荐(0) 编辑
摘要: #region 初始化下拉列表 public static void InitDDL(string sSQL, DropDownList ddl, string sFieldID, string sFieldName, string sSelectFieldNameValue, bool bAll) 阅读全文
posted @ 2012-11-28 17:23 天天代码码天天 阅读(6) 评论(0) 推荐(0) 编辑
摘要: #region 获取字符串首字母拼音 /// <summary> /// 获得一个字符串的汉语拼音码,XDesigner编制 /// </summary> /// <param name="strText">字符串</param> /// <returns>汉语拼音码,该字符串只包含大写的英文字母< 阅读全文
posted @ 2012-11-28 17:22 天天代码码天天 阅读(8) 评论(0) 推荐(0) 编辑
摘要: #region SQL防注入漏洞的方法 /// <summary> /// SQL防注入漏洞的方法 /// </summary> /// <param name="strVar"></param> /// <returns>是否存在特定字符</returns> public static bool 阅读全文
posted @ 2012-11-28 17:18 天天代码码天天 阅读(8) 评论(0) 推荐(0) 编辑
摘要: using System; using System.Collections.Generic; using System.Linq; using System.Web; using System.Data; using Newtonsoft.Json; using System.Text; usin 阅读全文
posted @ 2012-11-28 17:09 天天代码码天天 阅读(3) 评论(0) 推荐(0) 编辑
上一页 1 ··· 25 26 27 28 29