摘要: 一、整理好母版页 @ViewBag.Title @RenderSection("Head",false) -------顶部-------- @RenderBody() --------底部--------二、添加视图,将... 阅读全文
posted @ 2015-10-15 16:27 黄者之风 阅读(241) 评论(0) 推荐(0)
摘要: 一、在Model层添加一个类MyActionFilterAttribute.cs//AllowMultiple = true:允许多个标签同时都起作用[AttributeUsage(AttributeTargets.All,AllowMultiple = true)]public class MyA... 阅读全文
posted @ 2015-10-15 15:22 黄者之风 阅读(150) 评论(0) 推荐(0)
摘要: 一、添加控制器Home和Model数据public class UserInfo{ public int Id { get; set; } [Display(Name="用户名")] [StringLength(5,ErrorMessage="长度不能大于5")] [Requ... 阅读全文
posted @ 2015-10-15 12:48 黄者之风 阅读(228) 评论(0) 推荐(0)