【发布时间】:2012-10-05 12:02:22
【问题描述】:
剃刀视图:
@using (Html.BeginForm("Move", "Details", new { dict= dictionary}, FormMethod.Post)) {
//table with info and submit button
//dictionary => is a dictionary of type <Sales_Order_Collected, string>
}
控制器动作:
[HttpPost]
public string Move(Dictionary<Sales_Order_Collected, string> dict) {
return "";
}
有没有办法将模型字典传递给控制器?因为我的参数始终为空。
【问题讨论】:
标签: asp.net-mvc-3 razor routevalues