ChineseCalender类

摘要: using System;using System.Collections.Generic;using System.Text;namespace ChineseCalender{ #region ChineseCalendarException /// <summary> /// 中国日历异常处理 /// </summary> public class ChineseCalendarException : System.Exception { public ChineseCalendarException(string msg) ... 阅读全文
posted @ 2013-05-02 12:36 Karson007 阅读(302) 评论(0) 推荐(0) 编辑

windows phone 图片缓存

摘要: using System;using System.Net;using System.Windows;using System.Windows.Controls;using System.Windows.Media.Imaging;using System.Text;using System.IO.IsolatedStorage;using System.IO;namespace Cache{ public class ImageCache : DependencyObject { public static readonly DependencyProperty S... 阅读全文
posted @ 2013-04-20 18:09 Karson007 阅读(505) 评论(2) 推荐(0) 编辑

SQL 语句控制日期时间格式

摘要: CONVERT(nvarchar(10),count_time,121): CONVERT为日期转换函数,一般就是在时间类型(datetime,smalldatetime)与字符串类型(nchar,nvarchar,char,varchar)相互转换的时候才用到的函数的3个参数,第1个参数为,转换后的大小,第2个为转换日期的字段或函数,第3个为转换的格式,具体如下:0|0or100| mon dd yyyy hh:miAM(或PM) 1|101| mm/dd/yy 2|102| yy-mm-dd 3|103| dd/mm/yy 4|104| dd-mm-yy 5|105| dd-mm-yy6| 阅读全文
posted @ 2013-04-15 16:30 Karson007 阅读(276) 评论(0) 推荐(0) 编辑

Win8环境下安装Net Framework 3.5

摘要: 现在用了win8系统想安装SQL2008,但提示没有安装framework3.5环境不许安装。 有特意找来了framework3.5安装程序,但在安装过程中又提示:错误代码 0x800f0906 折腾了好久最终可以了,下面我就把经验分享给大家。以免走弯路 第一步:打开windows8安装盘,找到sources\sxs 文件夹;并把这个文件夹考到本地如G盘第二步:用管理员身份打开CMD程序第三步:执行下面命令: dism.exe /online /enable-feature /featurename:NetFX3 /Source:X:\sources\sxs (其中的X: 指的盘符)第四步:. 阅读全文
posted @ 2013-02-05 15:32 Karson007 阅读(618) 评论(4) 推荐(0) 编辑