随笔分类 -  .net

摘要:using System; using System.Collections.Generic; public class MoneyHelper { public static string[] chineseDigits = new string[] { ... 阅读全文
posted @ 2014-09-10 09:34 立己达人 阅读(242) 评论(0) 推荐(0)
摘要:using System; using System.Web; public static class CookieHelper { /// /// 添加cookie /// public static voi... 阅读全文
posted @ 2014-09-10 09:29 立己达人 阅读(224) 评论(0) 推荐(0)
摘要:1. front-view2. back-code 阅读全文
posted @ 2014-09-01 14:15 立己达人 阅读(125) 评论(0) 推荐(0)
摘要:路由http://msdn.microsoft.com/zh-cn/library/cc668201.aspxhttp://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Mvc/Controller.cs5.http:... 阅读全文
posted @ 2014-08-05 10:04 立己达人 阅读(244) 评论(0) 推荐(0)
摘要:1. 扩展代码机构namespace System.Web.Mvc.Html{ public static class FormExtensions//表单相关扩展方法,例如创建表单标签等。 public static class InputExtensions//这里包含了所有inpu... 阅读全文
posted @ 2014-07-24 17:04 立己达人 阅读(200) 评论(0) 推荐(0)
摘要:定义WMI(Windows Management Instrumentation,Windows 管理规范)是一项核心的 Windows 管理技术;用户可以使用 WMI 管理本地和远程计算机。教程(待修改)http://www.cnblogs.com/goed/archive/2011/11/10/... 阅读全文
posted @ 2014-07-23 15:38 立己达人 阅读(536) 评论(0) 推荐(0)
摘要:System.Management 命名空间http://msdn.microsoft.com/ZH-CN/library/gg145024(v=vs.110).aspxManagementObjectSearcher Classhttp://msdn.microsoft.com/en-US/lib... 阅读全文
posted @ 2014-07-19 14:43 立己达人 阅读(170) 评论(0) 推荐(0)
摘要:1 开机启动public static bool SetAutoRun(string keyName, string filePath){ try { RegistryKey Local= Registry.LocalMachine; RegistryKey ... 阅读全文
posted @ 2014-07-11 11:44 立己达人 阅读(331) 评论(0) 推荐(0)
摘要:遍历所有字体InstalledFontCollection MyFont = new InstalledFontCollection();FontFamily[] MyFontFamilies = MyFont.Families;List installedFontNames = new List(... 阅读全文
posted @ 2014-07-10 15:08 立己达人 阅读(2949) 评论(0) 推荐(0)
摘要:using System;using System.Data;using System.Configuration;using System.Linq;using System.Web;using System.Web.Security;using System.Web.UI;using Syste... 阅读全文
posted @ 2014-07-09 09:04 立己达人 阅读(316) 评论(0) 推荐(0)
摘要:1. 引入命名空间using System.Web.Script.Serialization;2. 解析 Json 为 Dictionary 类型JavaScriptSerializer js = new JavaScriptSerializer();return js.Deserialize(st... 阅读全文
posted @ 2014-07-07 11:37 立己达人 阅读(134) 评论(0) 推荐(0)
摘要:Win32_Printer classhttp://msdn.microsoft.com/zh-cn/library/aa394363.aspx1. 设置默认打印机using System;using System.Collections.Generic;using System.Linq;usin... 阅读全文
posted @ 2014-07-05 10:17 立己达人 阅读(3359) 评论(0) 推荐(0)
摘要:http://www.cnblogs.com/peterzb/archive/2009/07/19/1526555.html1. 生成缩略图. /// /// 生成缩略图 /// /// 源路径 /// 目标路径 ... 阅读全文
posted @ 2014-07-03 16:08 立己达人 阅读(245) 评论(0) 推荐(0)
摘要:1.http://www.sharejs.com/codes/2. http://msdn.microsoft.com/zh-cn/library/vstudio/gg145045(v=vs.100).aspx3.http://www.open-open.com/http://startbootst... 阅读全文
posted @ 2014-07-02 17:10 立己达人 阅读(322) 评论(0) 推荐(0)
摘要:// By using the ColorTranslator you can easily convert color values// definied in the hexadecimal format (like it is used in HTML)Color Color1 = Syste... 阅读全文
posted @ 2014-07-02 17:07 立己达人 阅读(1682) 评论(0) 推荐(0)
摘要:using System.Windows.Forms;using System.Runtime.InteropServices;using System.IO;[DllImport("kernel32.dll", SetLastError = true)]static extern int Writ... 阅读全文
posted @ 2014-07-01 18:39 立己达人 阅读(686) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.Runtime.InteropServices;using System.Windows.Forms;namespace drmaple{ class HotKey { ... 阅读全文
posted @ 2014-07-01 15:46 立己达人 阅读(345) 评论(0) 推荐(0)
摘要:1. 开源ASP.NET MVChttp://aspnetwebstack.codeplex.com/SourceControl/latest#src/System.Web.Mvc/Html/ValidationExtensions.cs2. MVC 文档http://www.asp.net/mvc... 阅读全文
posted @ 2014-06-28 18:28 立己达人 阅读(166) 评论(0) 推荐(0)
摘要:using System;using System.Collections.Generic;using System.ComponentModel;using System.Data;using System.Drawing;using System.IO;using System.Linq;usi... 阅读全文
posted @ 2014-06-20 17:15 立己达人 阅读(1213) 评论(0) 推荐(0)