摘要: /// <summary> /// SQL like 语句特殊字符 替换 /// </summary> /// <returns></returns> public static string SQLStrReplace(string str) { String RetuenValue = ""; if (str.Trim() != "") { RetuenValue = str.Replace("[", "[[]").Replace("'" 阅读全文
posted @ 2012-06-27 22:58 kiddy-star 阅读(486) 评论(0) 推荐(0) 编辑
摘要: View Code #region 中英文截取长度一致 //是否是中文 public static bool IsChinese(char c) { return (int)c >= 0x4E00 && (int)c <= 0x9FA5; } //获得字节长度 private static int getLengthb(string str) { return System.Text.Encoding.Default.GetByteCount(str); } //c#的中英文混合字符串截取指定长度,sta... 阅读全文
posted @ 2012-06-27 22:55 kiddy-star 阅读(228) 评论(0) 推荐(0) 编辑
摘要: View Code using System;using System.Data;using System.Configuration;using System.Web;using System.Web.Security;using System.Web.UI;using System.Web.UI.WebControls;using System.Web.UI.WebControls.WebParts;using System.Web.UI.HtmlControls;using Com.Netmarch.BLL;using Com.Netmarch.Model;/// <summary 阅读全文
posted @ 2012-06-27 22:47 kiddy-star 阅读(135) 评论(0) 推荐(0) 编辑
摘要: View Code protected void Page_Load(object sender, EventArgs e) { try { //获取文件路径 string filepath = Server.MapPath("xmsbry/upload/b/") + Request.QueryString["filename"]; if (System.IO.File.Exists(filepath)) { Download(filepat... 阅读全文
posted @ 2012-06-27 22:32 kiddy-star 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 此开篇第一章也。 很喜欢博客园的,也非常想注册一个账号的,而鉴于CSDN注册后长久荒废,也着实不再强烈愿望。现在终于还是注册,希望可以好好整理一下用过的东西。 发表文章的确要费神的,感觉在博客园的每个成员要慎重对待,就像写论文才可以,不然随意的就发表,不加修改润色,是在是发表错了地方,博客园应该一如既往充满经典的文章才好。实际上,被博客园吸引的地方也正在于此,因为各位技术牛人不吝赐教,倾其所有,所得出的结果令后学的童鞋受益匪浅,这是在居功至伟,我们曾经收到别人的帮助,那现在应该返馈帮助过别人。 我几乎是半路出家的,毕业2年后才又做起了本专业的东西,走了很多崎岖艰难的路,深知道别人的帮... 阅读全文
posted @ 2012-06-21 20:22 kiddy-star 阅读(170) 评论(0) 推荐(0) 编辑