随笔分类 -  MVC

摘要:(1)@Html.DisplayNameFor(model => model.Title)是显示列名,(2)@Html.DisplayFor(modelItem=> item.Title)是显示列的内容(3)@Html.ActionLink("CreateNew", "Create")是超链接,跳转到model中的create页面,引用的是controller中create方法;(4)@Html.ActionLink("Edit", "Edit", new { id=item.ID })编辑页面;(5) 阅读全文
posted @ 2014-01-13 23:46 Savant 阅读(235) 评论(0) 推荐(0)