Click here to Skip to main content
15,881,172 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using razor and passing an array to a controller. the array contains string type.
example array in view :
JavaScript
@{
.
.
.
   string[] menustatus = ViewBag.MENUS;
}
.
.
.
@Ajax.ActionLink("linkname",ActionName, ControllerName, new { status = menustatus }, new AjaxOptions { HttpMethod = "Post" }, null)

my controller is :
C#
public ActionResult ActoinName(params string[] status)
{
}

status Variable contains value of "system.string[]"
I expect the array values ​​are passed to the action.
Posted
Updated 22-Apr-14 18:52pm
v2
Comments
anup.bhunia 22-Apr-14 7:41am    
could you please elaborate your issue?

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900