狼一匹

  博客园  :: 首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

2012年7月26日

摘要: found it curious that other browsers like IE, Firefox were working for the image browser popup, and Chrome wasn’t. It was just showing a blank page like below.I checked the CKFinder support site, and foundthisto not be very helpful.Found a fix through a foreign website.In the CKeditor.js file, find 阅读全文
posted @ 2012-07-26 14:53 狼一匹 阅读(160) 评论(0) 推荐(0)

2012年7月6日

摘要: 下面为详细的c#配置方法CKEditor和CKFinder的最新版可以到官方网站(http://cksource.com)上下载获得。把以上两个资源放到网站的根目录: /CKEditor 和 /CKFinder (不区分大小写)在页面使用 CKEditor: <textarea cols="80" id="prcontent" name="content" rows="50">hello world!</textarea> <script type="text/javascr 阅读全文
posted @ 2012-07-06 10:13 狼一匹 阅读(325) 评论(0) 推荐(0)

2012年7月5日

摘要: As of right now Enums are not in EF4.Now we will be listening to your feedback about Beta1, and making some adjustments, so you never know, but at the moment it doesn’t look like they will be supported.Yesterday though I came up with a workaround that, while a bit of work, is pretty interesting.Work 阅读全文
posted @ 2012-07-05 13:50 狼一匹 阅读(243) 评论(0) 推荐(0)

2012年6月29日

摘要: 只要在return View 的时候设置对应实体字段的值 就行了实体类View Code public class LogOnModel { [Required] [Display(Name = "用户名")] public string UserName { get; set; } [Required] [DataType(DataType.Password)] [Display(Name = "密码")] public string Password { get; set; } ... 阅读全文
posted @ 2012-06-29 17:33 狼一匹 阅读(2292) 评论(0) 推荐(0)

2012年6月27日

摘要: /// <summary> /// 验证角色名称唯一 /// </summary> /// <param name="name"></param> /// <returns>true验证通过</returns> [HttpGet] public JsonResult CheckName(string name) { string url = Request.UrlReferrer.OriginalString; HttpRequest hr = new ... 阅读全文
posted @ 2012-06-27 16:46 狼一匹 阅读(168) 评论(0) 推荐(0)