Pet*_*háč 4 asp.net post controller http asp.net-mvc-2
下面是我发送到我的ASP.NET MVC2控制器的POST请求(使用Firebug Net面板)的屏幕截图.

这是接收POST请求的控制器/操作方法:
public ActionResult Search(int[] skill, int[] discipline, int[] education, int[] marketsector){ ... }
Run Code Online (Sandbox Code Playgroud)
POSTs参数在我看来是正确的形式,但action方法接收四个空参数.你能否告诉我在服务器端方法签名应该是什么样的?或者将这四个整数数组发布到我的MVC2控制器的更好方法是什么?
它们看起来像这样:
<input type="text" name="discipline" value="6" />
<input type="text" name="marketsector" value="5" />
<input type="text" name="marketsector" value="7" />
<input type="text" name="marketsector" value="3" />
<input type="text" name="skill" value="3" />
<input type="text" name="skill" value="8" />
Run Code Online (Sandbox Code Playgroud)