06 2012 档案

摘要:View Code <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>drag div demo</title><style type="text/css"><!--#dragDiv { position:absolute; width:20 阅读全文
posted @ 2012-06-28 13:44 kiddy-star 阅读(158) 评论(0) 推荐(0)
摘要:View Code <html xmlns="http://www.w3.org/1999/xhtml"><head><meta http-equiv="Content-Type" content="text/html; charset=utf-8" /><title>date demo</title><script type="text/javascript">function getCurrentTimeString(){ var curr 阅读全文
posted @ 2012-06-28 12:07 kiddy-star 阅读(294) 评论(0) 推荐(0)
摘要:View Code public class NmSecurity { /************************************************** * FileName: NmSecurity.cs * Version: 1.00 * Author: Kria * Date: 2009-3-4 * Last Modified Date: 2009-3-6 * Function: * Copy... 阅读全文
posted @ 2012-06-27 23:36 kiddy-star 阅读(309) 评论(0) 推荐(0)
摘要:View Code public class ErrorLog { /// <summary> /// 创建错误日志到文件 /// </summary> /// <param name="exceptionMessage">异常说明</param> /// <param name="exceptionStackTrace">异常跟踪堆栈信息</param> public static void AddLog(string exceptionMessage, string except 阅读全文
posted @ 2012-06-27 23:29 kiddy-star 阅读(174) 评论(0) 推荐(0)
摘要:View Code ////存储用户登录信息 private UserInfo _GustUserDynamicInfor; public UserInfo GustUserDynamicInfor { get { if (_GustUserDynamicInfor == null) { if (Session["GuestUser"] != null) { ... 阅读全文
posted @ 2012-06-27 23:19 kiddy-star 阅读(247) 评论(0) 推荐(0)
摘要:View Code /// <summary> /// 添加索引 /// </summary> /// <param name="TypeValue">1,企业-2,产品-3,供求、商机-4,资讯</param> /// <param name="ID">所要添加索引的记录的ID</param> /// <returns>0,失败-1,成功-2,Type值错误,3-索引添加出错</returns> public static int AddSearchInde 阅读全文
posted @ 2012-06-27 23:03 kiddy-star 阅读(261) 评论(0) 推荐(0)
摘要:/// <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 阅读(494) 评论(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 阅读(246) 评论(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 阅读(163) 评论(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 阅读(163) 评论(0) 推荐(0)
摘要:此开篇第一章也。 很喜欢博客园的,也非常想注册一个账号的,而鉴于CSDN注册后长久荒废,也着实不再强烈愿望。现在终于还是注册,希望可以好好整理一下用过的东西。 发表文章的确要费神的,感觉在博客园的每个成员要慎重对待,就像写论文才可以,不然随意的就发表,不加修改润色,是在是发表错了地方,博客园应该一如既往充满经典的文章才好。实际上,被博客园吸引的地方也正在于此,因为各位技术牛人不吝赐教,倾其所有,所得出的结果令后学的童鞋受益匪浅,这是在居功至伟,我们曾经收到别人的帮助,那现在应该返馈帮助过别人。 我几乎是半路出家的,毕业2年后才又做起了本专业的东西,走了很多崎岖艰难的路,深知道别人的帮... 阅读全文
posted @ 2012-06-21 20:22 kiddy-star 阅读(176) 评论(0) 推荐(0)