Dynamic Controls in a Strongly Typed View (ASP.NET MVC)?

If I understand your question correctly you are asking about binding to a list of phone numbers. Phil Haack has a post of how to do model binding to a list Hope this helps.

You understood my question perfectly - I can now vouch for this working with Lists in custom objects as well! – Rob Jun 17 '09 at 3:02.

I want to create a create/edit action in my MVC app - the page inherits from ViewPage and I want to be able to dynamically add the fields for the end-user to add a "phone" (anywhere between 0 - 5 phones). How would I pass that data to the Create/Edit method in my controller. I have tried the following, but nothing seems to get the phone numbers.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions