0
Razor視圖:通字典的形式後,控制器提交
@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 "";
}
有沒有辦法通過模型字典控制器?因爲我的參數始終爲空。