Hello!
I am making a form on ASP.NET MVC 2, in my opinion, I have a TextBox for the name and two buttons. One of the buttons is for sending, and the other has a function in JS that adds another text box 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>
source
share