c# - Two Html.DropDownListFor for one Model property? -


i have 2 select lists, , want selection both go 1 property in model.

        <li>              @html.dropdownlistfor(model => model.year, (selectlist)fiscalyearslist, "all years", new { id = "fiscalyearslist", style= "display:none" })         </li>         <li>              @html.dropdownlistfor(model => model.year, (selectlist)calendaryearslist, "all years", new { id = "calendaryearslist" })         </li> 

then jquery toggling each whenever radio button selected. possible send selected item visible dropdownlistfor model? not quite working @ moment. first dropdownlistfor gets sent model.

i ended adding property view model , adding little logic display correct dropdownlistfor javascript. works fine.


Comments

Popular posts from this blog

c# - SharpSVN - How to get the previous revision? -

c++ - Is it possible to compile a VST on linux? -

url - Querystring manipulation of email Address in PHP -