In ASP.NET MVC framework, for non-sequential list binding we need a random prefix for the form field name and also a hidden imput which indicates that item inside the collection.
Inside the framework, we do not have any HTML helper method to automate that process. A while back ago, Steve Sanderson wrote a blog post demonstrating a sample on non-sequantial list binding. He used a HTML helper method there called BeginCollectionItem which he created.
I wonder if something like this can be baked into the framework. Any thoughts?
Note: More info about this issue: http://aspnetwebstack.codeplex.com/discussions/351576
Comments: @HongmeiG As explained under this discussion (http://aspnetwebstack.codeplex.com/discussions/351576), Steve Sanderson has basically written that code. I am not sure if that would be a good idea to send a PR with the code that he has written by himself.
Inside the framework, we do not have any HTML helper method to automate that process. A while back ago, Steve Sanderson wrote a blog post demonstrating a sample on non-sequantial list binding. He used a HTML helper method there called BeginCollectionItem which he created.
I wonder if something like this can be baked into the framework. Any thoughts?
Note: More info about this issue: http://aspnetwebstack.codeplex.com/discussions/351576
Comments: @HongmeiG As explained under this discussion (http://aspnetwebstack.codeplex.com/discussions/351576), Steve Sanderson has basically written that code. I am not sure if that would be a good idea to send a PR with the code that he has written by himself.