0

hi I have page which is action "create" for order.

I want to be able dynamically to add multiple boxes and submit all the items as one request. I know how to add one a time and save as ajax request but not all at once Any Ideas how to do that?

public class oder{
public int Id{get;set;}
public string Recipient{get;set;}
public List<Box> Boxes{get;set;}
}

public class Box{
public int Id{get;set;}
public string
}

I have simplified the html code

<% html.SubmitForm(){ %>
<div><%: html.textboxfor(model=>model.Recipient) %></div>
<div class="Action">Add Box</div>

<fieldset>
<legend>Boxes</legend>

</fieldset>

<%}%>

1 Answer 1

1

You may find the following blog post useful.

Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.