Hello all,
Thera the values of dropdownlistfor,
- public static List<string> incorporationtypelist = new List<string> { "Publicaly Held", "Privately Held", "Other" };
And this is the text of the dropdownlistfor,
- "Public" ,"Private","Others"
Then, How can bind both Text and Value to drowpdownfor?
- @Html.DropDownListFor(model => model.incorporationtypelist, new SelectList(Model.incorporationtypelist, "Value", "Text"), new { @class = "form-control" })
Please help me...