码迷,mamicode.com
首页 > Web开发 > 详细

MVC-Html.ActionLink的几种写法

时间:2015-06-03 13:29:17      阅读:133      评论:0      收藏:0      [点我收藏+]

标签:

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是参数

 

MVC-Html.ActionLink的几种写法

标签:

原文地址:http://www.cnblogs.com/yaosuc/p/4548714.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!