工作+学习
chen357313771
这个作者很懒,什么都没留下…
展开
-
工作之杂记--c# 使用wmi to start/stop IIS6 应用程序池和webserver
使用wmi to start/stop IIS6 应用程序池和webserver翻译 2014-10-13 16:43:40 · 837 阅读 · 1 评论 -
工作之杂记--JS杂记
radio选中设定值 $().ready(function () { var isShow = "@Model.IsShow"; var isUsed = "@Model.IsUsed"; $("[name=rdIsUsed]").each(function () { if ($(this).val() == isUse原创 2014-10-29 10:34:27 · 350 阅读 · 0 评论 -
工作之杂记--缓存操作
/// /// 插入缓存 /// /// /// /// 过期时间 public static void CacheInsert(string key, object value, DateTime absoluteExpiration) { if (va原创 2014-10-29 10:12:54 · 259 阅读 · 0 评论 -
工作之杂记-wmi start service 核心代码
ConnectionOptions options = new ConnectionOptions(); ManagementScope scope = new ManagementScope(@"root\cimv2", options); scope.Connect(); ObjectQuery q原创 2014-10-17 17:17:26 · 337 阅读 · 0 评论 -
工作之杂记--use jQueryUI
function initData(params) { $('#tt').datagrid({ url: '/Admin/LuckRecord/GetRecordListByRecordName', width: 900, //height: 350, title: '战绩榜列表',原创 2014-10-29 10:24:27 · 399 阅读 · 0 评论 -
工作之杂记--first linq
使用linq:查询赋予自定义对象 string _eventName = Request["Content"] ?? ""; var _userComment = from com in db.HeYingXiao_UserComment join users in db.HeYingXiao_User on原创 2014-10-29 10:01:26 · 290 阅读 · 0 评论 -
工作之杂记---Json序列化反序列化简单方法
/// /// 对象序列化成json /// /// /// public static string ObjectToJson(object obj) { return obj == null ? "" : JsonConvert.SerializeObject(obj原创 2014-10-29 10:15:02 · 285 阅读 · 0 评论 -
工作之杂记---a标签隐藏input file 达到点击a标签即点击input file
由于浏览器不一,如IE8存在安全限制,代码f原创 2014-10-29 11:01:14 · 2931 阅读 · 1 评论