09 2011 档案

摘要:插入实体的字段:var data = new Comments();data.ArticleId = 1;data.AuditStatus = 2;data.Company = 5;data.Content = "测试";data.CreateTime = DateTime.Now;data.IP = "192.168.1.2";data.NickName = "张三";data.ReplyContent = string.Empty;data.ReplyId = 0;data.ReplyNickName = string.Empty 阅读全文
posted @ 2011-09-28 16:40 ahui 阅读(440) 评论(1) 推荐(0)
摘要:int[] source = { 5, -3, 6, -7, -6, 1, 8, -4, 0, 0 };int toRightIdx = 0;int toLeftIdx = source.Length - 1;int leftIdx = 0;int rightIdx = source.Length - 1;int[] result = new int[source.Length];while (true){ if (toLeftIdx >= 0) { int left = source[toRightIdx++]; if (left < 0) resul... 阅读全文
posted @ 2011-09-19 09:10 ahui 阅读(532) 评论(0) 推荐(0)
摘要:1.服务器端代码: /// <summary> /// 自定义Ext Ajax请求结果 /// </summary> /// <param name="success">是否成功</param> /// <param name="value">结果</param> /// <returns></returns> protected ActionResult ExtJson(bool success) { return ExtJson(success, 0, s 阅读全文
posted @ 2011-09-18 10:51 ahui 阅读(1021) 评论(1) 推荐(0)