6

I need to dynamically build a list of textboxes using javascript and jquery. The problem I am having is when the textboxes are posted how do I capture the information in the controller.

2 Answers 2

5

Are you doing something like the the Model Binding To A List example or something different? This kinda looks like a similar question as well.

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

2 Comments

This is solution seems much better, very worhty of a look.
Yes, this looks like a better solution to me as well.
4

Steve Sanderson has a blog post with sample code showing precisely how to do this: http://blog.stevensanderson.com/2010/01/28/editing-a-variable-length-list-aspnet-mvc-2-style/

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.