Hi,
I'm migrating a project in asp webforms into mvc.
I've a form with a lot of drop down list. In webForms, define the control and bind the class is easy:
<asp:DropDownList ID="ddlPlanOcupacion" CssClass="combo" runat="server" SelectMethod="GetPlanesOcupacion" DataTextField="Nombre" DataValueField="IdPlanOcupacion" SelectedValue='<%# BindItem.BloqueInicial.IdPlanOcupacion %>' > </asp:DropDownList>
But in MVC, I need a lot of lines for create and bind the control
http://mvc.syncfusion.com/demos/web/dropdownlist/dropdownlistforIs not there an easier way to create and bind with the model the dropdownlist?
Thanks