摘要:
(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 })编辑页面; 阅读全文
posted @ 2013-04-22 17:38
风雪七月花溅墨
阅读(192)
评论(0)
推荐(0)
摘要:
表单form的提交有两种方式,一种是get的方法,一种是post 的方法.看下面代码,理解两种提交的区别:1<formid="form1"method="get"runat="server">2 <div>3 你的名字<asp:TextBoxID="name"runat="server"></asp:TextBox><br/>4 <br/>5 你的网站<asp:TextBoxID="website" 阅读全文
posted @ 2013-04-22 17:34
风雪七月花溅墨
阅读(221)
评论(0)
推荐(0)

浙公网安备 33010602011771号