Passing multiple parameters in an MVC Ajax.ActionLink
Posted
by mwright
on Stack Overflow
See other posts from Stack Overflow
or by mwright
Published on 2010-04-07T20:52:31Z
Indexed on
2010/04/07
21:03 UTC
Read the original article
Hit count: 1648
asp.net-mvc
|parameters
I am using an Ajax.ActionLink to call an Action in a Controller, nothing special there. I want to pass two parameters to the Action. Is this possible using an Ajax.ActionLink? I thought that it would just be a matter of including multiple values in the AjaxOptions:
<%= Ajax.ActionLink("Link Text",
"ActionName",
"ControllerName",
new { firstParameter = firstValueToPass, secondParameter = secondValueToPass },
new AjaxOptions{ UpdateTargetId = "updateTargetId"} )%>
Is it possible to pass multiple parameters?
Where is a good place to learn more about the AjaxOptions?
© Stack Overflow or respective owner