上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页
  2013年7月11日
摘要: using System;using System.Collections.Generic;using System.Web;using System.Drawing;using System.IO;namespace EASAA.Common{ /// /// 生成Ico类 /// public class IconMaker { /// /// 创建 /// /// 原图片路径,支持 *.jpg,*.png,*.bmp,*.gif /// 要生成的Ico全路径,如:C://uploa... 阅读全文
posted @ 2013-07-11 14:53 LitDev 阅读(981) 评论(0) 推荐(0)
摘要: aspx文件的head属性中增加runat="server"后台cs文件中: /// /// 客户端注册ICO图标 /// /// private void RegeistICO(string ico_img_url) { System.Text.StringBuilder str = new System.Text.StringBuilder(); str.Append(""); str.Append(" "); str.... 阅读全文
posted @ 2013-07-11 14:44 LitDev 阅读(1060) 评论(0) 推荐(0)
  2013年7月2日
摘要: 当监听的指定数据库内容某张表变化时就更新缓存先来配置数据库,启动监听服务(SQL2008下)执行如下语句:ALTER DATABASE OumindBlog SET NEW_BROKER WITH ROLLBACK IMMEDIATE;ALTER DATABASE OumindBlog SET ENABLE_BROKER;OumindBlog为数据库名称检测数据库是否开启监听:SELECT is_broker_enabled FROM sys.databases WHERE name = 'OumindBlog'结果为0则是未启动,为1是启动状态接着配置webconfig,关键 阅读全文
posted @ 2013-07-02 23:43 LitDev 阅读(2136) 评论(0) 推荐(0)
摘要: CaCheHelp 类中代码如下:#region 根据键从缓存中读取保持的数据 /// /// 根据键从缓存中读取保持的数据 /// /// 索引键值 /// public static object GetCaChe(string CaCheKey) { System.Web.Caching.Cache ca = HttpRuntime.Cache; return ca[CaCheKey]; } #endregion ... 阅读全文
posted @ 2013-07-02 22:46 LitDev 阅读(312) 评论(0) 推荐(0)
摘要: CaCheHelp类中代码如下: #region 根据键从缓存中读取保持的数据 /// /// 根据键从缓存中读取保持的数据 /// /// 索引键值 /// public static object GetCaChe(string CaCheKey) { System.Web.Caching.Cache ca = HttpRuntime.Cache; return ca[CaCheKey]; } #en... 阅读全文
posted @ 2013-07-02 22:42 LitDev 阅读(559) 评论(0) 推荐(0)
摘要: /// /// 获得查询分页数据 /// public DataSet GetList(int pageSize, int pageIndex, string strWhere, string filedOrder, out int recordCount) { StringBuilder strSql = new StringBuilder(); strSql.Append("select * FROM view_get_car_hl_faultcode"); if ... 阅读全文
posted @ 2013-07-02 11:49 LitDev 阅读(450) 评论(0) 推荐(0)
摘要: #region 获取 客户端IP /// /// 获取客户端真实IP /// /// public static string GetClientRealIP() { string ip; try { HttpRequest request = HttpContext.Current.Request; if (request.ServerVariables["HTTP_VIA"] != ... 阅读全文
posted @ 2013-07-02 11:44 LitDev 阅读(542) 评论(0) 推荐(0)
摘要: #region 返回两个日期之间的时间间隔 /// /// 返回两个日期之间的时间间隔(y:年份间隔、M:月份间隔、d:天数间隔、h:小时间隔、m:分钟间隔、s:秒钟间隔、ms:微秒间隔) /// /// 开始日期 /// 结束日期 /// 间隔标志 /// 返回间隔标志指定的时间间隔 public static int DateDiff(System.DateTime Date1, System.... 阅读全文
posted @ 2013-07-02 11:33 LitDev 阅读(498) 评论(0) 推荐(0)
摘要: /// /// C#/PHP/JSP 3DES 加密与解密(只支持UTF-8编码) /// public class Crypto3DES { /// /// 默认密钥 /// private string Keys; /// /// 密钥与加密字符串不足8字符时的填充字符 /// private char paddingChar = ' '; /// /// 实例化 Crypto3DES 类 /// ... 阅读全文
posted @ 2013-07-02 11:32 LitDev 阅读(8091) 评论(0) 推荐(0)
摘要: /// /// DES加密/解密类。 /// public class DESEncrypt { #region ========加密======== /// /// 加密 /// /// /// public static string Encrypt(string Text) { return Encrypt(Text, "Www.EasaA.Com"); } /// /// ... 阅读全文
posted @ 2013-07-02 11:27 LitDev 阅读(396) 评论(0) 推荐(0)
上一页 1 2 3 4 5 6 7 8 9 ··· 11 下一页