上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页
摘要: 下载地址另外,如果开着远程桌面连接,也会出现这种情况,因为默认会把本地的剪贴板内容带到远程,其中可能有什么不为人知的问题,导致了复制无效。。 阅读全文
posted @ 2013-01-21 11:58 黑冰.org 阅读(2683) 评论(0) 推荐(0) 编辑
摘要: PageContext.RegisterStartupScript(ActiveWindow.GetConfirmHidePostBackReference() + Alert.GetShowInTopReference("保存成功")); 阅读全文
posted @ 2013-01-18 15:23 黑冰.org 阅读(2468) 评论(0) 推荐(0) 编辑
摘要: PageContext.RegisterStartupScript(WinCreateType.GetShowReference(string.Format("/InspectType/Create.aspx?ClassID={0}",id),"创建新类型")); 阅读全文
posted @ 2013-01-18 15:22 黑冰.org 阅读(3026) 评论(0) 推荐(0) 编辑
摘要: /// <summary> ///CreateTable 的测试 ///</summary> [TestMethod()] public void CreateTableTest() { Role target = new Role(); //预期值 bool expected = false; //实测值 bool actual; actual = target.CreateT... 阅读全文
posted @ 2013-01-17 16:05 黑冰.org 阅读(224) 评论(0) 推荐(0) 编辑
摘要: ... 阅读全文
posted @ 2013-01-14 16:21 黑冰.org 阅读(2110) 评论(0) 推荐(0) 编辑
摘要: 正常代码 Button1.Icon = Icon.Home特殊情况:private Icon GetIcon(strig icon){ return (Icon)Enum.Parse(typeof(Icon), icon);}Button1.Icon = GetIcon("Home"); 阅读全文
posted @ 2013-01-14 12:58 黑冰.org 阅读(201) 评论(0) 推荐(0) 编辑
摘要: public static class StringExtensions { /// <summary> /// 转换为Int32 /// </summary> /// <param name="num"></param> /// <returns></returns> public static int ToInt32(this string num) { int i; return (!Int32.TryParse(num, out i... 阅读全文
posted @ 2013-01-10 12:03 黑冰.org 阅读(222) 评论(0) 推荐(0) 编辑
摘要: public static class DateTimeExtensions { /// <summary> /// 获取格式化日期,默认为 yyyy-mm-dd h:m:s /// yyyy:数字年份,m/mm数字月,d/dd数字日 /// YYYY:汉字年份,如二〇一二,M/MM汉字月,D/DD汉字日 /// </summary> /// <param name="dt">要处理的日期时间</param> /// <param name="sFormat">格式化字符串,以ymd... 阅读全文
posted @ 2013-01-10 12:02 黑冰.org 阅读(346) 评论(2) 推荐(0) 编辑
摘要: public static class Int32Extensions { public static string ToChineseMonth(int num) { if (num == 0 || num > 12) throw new Exception("月份错误"); string[] arr = { "〇", "一", "二", "三", "四", "五", "六", "七", "八&qu 阅读全文
posted @ 2013-01-10 12:02 黑冰.org 阅读(174) 评论(0) 推荐(0) 编辑
摘要: public static class DataTableExtensions { public static List<T> ToList<T>(this DataTable dt) where T : new() { var list = new List<T>(); if (dt == null) return list; var len = dt.Rows.Count; for (var i = 0; i < len; i++) { ... 阅读全文
posted @ 2013-01-09 11:50 黑冰.org 阅读(1789) 评论(2) 推荐(2) 编辑
上一页 1 ··· 7 8 9 10 11 12 13 14 15 16 下一页