在@ Ajax.ActionLink函数中传递值

时间:2012-10-09 06:05:15

标签: asp.net-mvc

如何在函数中传递值

@Ajax.ActionLink("Back to list", "list", "Security", 
    new AjaxOptions { UpdateTargetId = "show" })

1 个答案:

答案 0 :(得分:4)

有一个overload

@Ajax.ActionLink("Back to list", "list", "Security", new { YourValue = "Value" }, new AjaxOptions { UpdateTargetId = "show" })