Html.ActionLink("linkText","actionName")
Html.ActionLink("linkText","actionName",new{a="aaa",b="bbb"})
Html.ActionLink("linkText","actionName",new{a="aaa",b="bbb"},new{@class="className",@style="styleName",target="_blank"})
Html.ActionLink("linkText","actionName","controlName")
Html.ActionLink("linkText","actionName","controlName",new{a="aaa",b="bbb"})
Html.ActionLink("linkText","actionName","controlName",new{a="aaa",b="bbb"},new{@class="className",@style="styleName",target="_blank"})
Html.ActionLink("linkText", "actionName", "controllerName", new { @area = "FrameSet", a = "aa", b = "bb" }, new { @class = "className", @style = "styleName", target = "_blank" }) //area是区域,a和b是参数
//下面的写法,用在列表页的操作中,操作完成之后还可以返回带有查询条件的页面 @foreach (var item in Model) { <tr> <td> @Html.DisplayFor(p => item.Keyword) </td> <td> @Html.ActionLink("删 除", "List", new { deleteKey = item.Keyword, page = Request["page"], keyword = Request["keyword"] }) </td> </tr> }