07 2014 档案

C# 调用谷歌翻译
摘要:public static class GoogleTranslate { /// /// 使用WebRequest获取Google翻译后的内容 /// /// 需要翻译的内容 /// 原文语种 ... 阅读全文

posted @ 2014-07-25 23:58 忙碌ing 阅读(415) 评论(0) 推荐(0)

JS 操作Cookie
摘要:jQuery cookie是个很好的cookie插件,大概的使用方法如下example $.cookie(’name’, ‘value’);设置cookie的值,把name变量的值设为valueexample $.cookie(’name’, ‘value’, {expires: 7, path: ... 阅读全文

posted @ 2014-07-25 14:13 忙碌ing

Cache 操作类
摘要:public class CacheManage { public static Object GetCache(string cacheKey) { if (HttpRuntime.Cache[cacheKey] != null) ... 阅读全文

posted @ 2014-07-25 12:05 忙碌ing 阅读(174) 评论(0) 推荐(0)

两个DataTable合并
摘要:在博客园中发现有很多关于两个DataTable合并的例子,发现大家的方法挺一致,昨天做项目的时候需要合并两个DataTable,我使用的是DataTable.ImportRow ,先记录下,留着以后参考//dt DataTable dt = new DataTable(); ... 阅读全文

posted @ 2014-07-22 10:02 忙碌ing 阅读(951) 评论(0) 推荐(0)

Cookie操作类
摘要:public class Cookie { //添加Cookie public static void AddCookie(string cookieName,string value,DateTime expireDays) { ... 阅读全文

posted @ 2014-07-21 14:44 忙碌ing 阅读(175) 评论(0) 推荐(0)

C# 字符串加密解密
摘要:public static class KeySet1 { private static byte[] Keys = { 0x12, 0x34, 0x56, 0x78, 0x90, 0xAB, 0xCD, 0xEF }; /// /// DES加密字... 阅读全文

posted @ 2014-07-21 13:56 忙碌ing

Sql contact_cursor(指针) 和 语句中返回结果
摘要:declare @name nvarchar(20)DECLARE contact_cursor CURSOR FORselect name from sysobjects where name like 'tb_message_%'OPEN contact_cursorFETCH NEXT FRO... 阅读全文

posted @ 2014-07-16 09:30 忙碌ing 阅读(767) 评论(0) 推荐(0)

linq 操作DataTable
摘要:1 public partial class Form4 : Form 2 { 3 public Form4() 4 { 5 InitializeComponent(); 6 } 7 8 ... 阅读全文

posted @ 2014-07-14 00:21 忙碌ing 阅读(450) 评论(0) 推荐(0)

导航