Controller with unknown number of parameters?
- by StackPointer
Greetings!
I'm doing a Form on ASP.NET MVC 2, in my view I have a TextBox for the name, and two buttons.
One of the buttons is for submit, and the other one have a function in JS, that add's another textbox, and a drop down list.
In the post controller action method, how do I get all the parameters?
Here is the View Code:
<body>
<div>
<%using (Html.BeginForm())
{ %>
New Insurance Type Name:
<%=Html.TextBox("InsuranceName") %>
<div id="InsuranceDetails"/>
</div>
<div id="Buttons">
<input type="button" onclick="AddFieldForm()" value="Add Field" />
<p />
<input type="submit" value="Submit" />
<%} %>
</div>
</body>