i have a html form which posts to a asp.net-mvc controller action and previously worked fine. i just added a new multiselect dropdown (using the fcbkcomplete jquery plugin) and i am having problems binding it to a new property that i just added of my binding object
i am just listing:
<select id="SponsorIds" name="SponsorIds"></select>
in the html but it looks like fcbkcomplete somehow changes this to name="SponsorIds[]".
This is the html i get after showing "Selected Source" in the browser.
<select multiple="multiple" style="display: none;" id="SponsorIds" name="SponsorIds[]">
here is all of the html that gets spit out from the plugin
<select multiple="multiple" style="display: none;" id="SponsorIds" name="SponsorIds[]">
<option class="selected" selected="selected" value="9">MVal</option>
</select>
<ul class="holder">
<li rel="9" class="bit-box">MVal<a href="#" class="closebutton"></a></li>
<li id="SponsorIds_annoninput" class="bit-input"><input size="1" class="maininput" type="text"></li>
</ul>
<div style="display: none;" class="facebook-auto">
<ul style="width: 512px; display: none; height: auto;" id="SponsorIds_feed">
<li class="auto-focus" rel="9"><em>MVal</li></ul><div style="display: block;" class="default">Type Name . . .
</div>
</div>
and here is my controller action:
public ActionResult UpdateMe(ProjectViewModel entity)
{
}
The view model, ProjectViewModel has a property:
public int[] SponsorIds { get; set; }
which i thought would bind fine to this but doesn't seem to as it just shows up as "null" on the serverside. Can anyone see anything wrong here?