上一页 1 ··· 5 6 7 8 9 10 11 12 下一页
摘要: 在Nop3.4中,他抛弃了原来的xxx.Mobile.cshtml的这种写法,而是采用了响应式布局,并且把规则也给改了,你在后台配置不启用响应式布局,在前台你仍然不能写xxx.Mobile.cshtml这样。查了一天的原因,终于查出来了。首先请大家了解mvc4的新特征:http://www.cnbl... 阅读全文
posted @ 2014-10-29 16:50 人生无赖 阅读(886) 评论(10) 推荐(0) 编辑
摘要: 1 /// 2 /// EXCEL批量导入 3 /// 4 /// 文件路径 5 /// 店铺 6 /// 7 public string BatchUploadProduc... 阅读全文
posted @ 2014-10-21 15:17 人生无赖 阅读(590) 评论(0) 推荐(0) 编辑
摘要: 改天我在写详细注释吧,代码先贴出来,注释很明白了,应该无需多言。 1 Controller代码: 2 public ActionResult ForgotPassword() 3 { 4 return View(); 5 } 6 ... 阅读全文
posted @ 2014-10-19 23:18 人生无赖 阅读(614) 评论(0) 推荐(0) 编辑
摘要: Demo地址:http://webspirited.com/tagit/使用方法:除了JQuery脚本外,下面的脚本也是必须的,这些脚本你都可以去GitHub下载:https://github.com/hailwood/jQuery-TagitHTML中,你的文本框替换成:然后加入一段Js: ... 阅读全文
posted @ 2014-10-11 00:29 人生无赖 阅读(701) 评论(0) 推荐(0) 编辑
摘要: 新人犯的错误,记录一下供以后参考。有两个类1 public class A2 {3 public string Name{get;set;} 4 }5 6 public class B:A7 {8 public int Age{get;set;}9 }有一个方法,需要类B age作为条件... 阅读全文
posted @ 2014-10-09 22:32 人生无赖 阅读(6326) 评论(0) 推荐(2) 编辑
摘要: 1 public class MemberValidationAttribute : AuthorizeAttribute 2 { 3 protected override bool AuthorizeCore(HttpContextBase httpContext) 4 ... 阅读全文
posted @ 2014-10-08 10:16 人生无赖 阅读(228) 评论(0) 推荐(0) 编辑
摘要: asp.net MVCKindeditor 图片、文件上传所用的Controller 1 [HttpPost, AllowAnonymous] 2 public ActionResult UploadImage() 3 { 4 string ... 阅读全文
posted @ 2014-10-08 10:07 人生无赖 阅读(648) 评论(0) 推荐(0) 编辑
摘要: 本例是单独调用kindeditor多图上传的组件来进行多图上传,兼容性你懂得!官方示例地址:http://kindeditor.net/ke4/examples/multi-image-dialog.htmlHtmlJS 阅读全文
posted @ 2014-10-08 09:55 人生无赖 阅读(1306) 评论(0) 推荐(0) 编辑
摘要: 1 public class ValidateCode 2 { 3 /// 4 /// 验证码的最大长度 5 /// 6 public int MaxLength 7 { 8 ... 阅读全文
posted @ 2014-10-08 09:28 人生无赖 阅读(295) 评论(0) 推荐(0) 编辑
摘要: 1 public static class HtmlHelperExt 2 { 3 public static MvcHtmlString EnumDropDownList(this HtmlHelper htmlHelper, string name, TEnum sel... 阅读全文
posted @ 2014-10-08 09:26 人生无赖 阅读(302) 评论(0) 推荐(0) 编辑
上一页 1 ··· 5 6 7 8 9 10 11 12 下一页