Model Binding to an Unordered List, ASP.NET MVC 2
- by Stacey
Given action result ...
public ActionResult Create( // ... )
{
}
with HTML
<ul>
<li id="1">Some Item</li>
<li id="2">Some Other Item</li>
</ul>
Is there any way I can post the li items back to the controller? The list is populated by a jQuery UI "Sortable" listbox.