由网友(っ姑娘你薄凉如初)分享简介:我想从查看到提交表单的控制器传递一个列表阵列。我可以通过使用Html.hidden()函数传递回简单值。但是,一个人如何传回一个复杂的对象或List阵列I want to pass a list array from the View to the controller on submission of the f...
我想从查看到提交表单的控制器传递一个列表阵列。 我可以通过使用Html.hidden()函数传递回简单值。但是,一个人如何传回一个复杂的对象或List阵列
I want to pass a list array from the View to the controller on submission of the form. I can pass back simple values by using the Html.hidden() function. But how does one pass back a complex object or a List array
推荐答案
您可以使用JSON或看看下面的例子
You can either use Json or look into the following example
的http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/
相关推荐
最新文章