0
我在表单中有几个过滤器选项。我已经给出了行动方法。代码如下所示。将参数传递给Action方法
<% using (Ajax.BeginForm
(new AjaxOptions { UpdateTargetId = "accountsGrid" }))
{ %>
<body style="overflow: scroll">
<%= Html.TextBox("subAccNumber",accId) %>
<%= Html.TextBox("accountName", Name)%>
<%= Html.TextBox("address", address)%>
<%} %>
<%Html.RenderAction("SelectAccounts"); %>
</body>
public PartialViewResult SelectAccounts(string accId,string accountName,string address)
{
// Do some stuff
return PartialView();
}
我可以克里特字典或所有的输入参数(表单控件)的东西,并通过直接作用的方法?或者我必须为每个控件添加单独的参数?
你应该接受一些前一个问题的回答获得了良好的反响 – Tassadaque