mvc fill dropdownlist

Posted by user276640 on Stack Overflow See other posts from Stack Overflow or by user276640
Published on 2010-03-14T19:33:44Z Indexed on 2010/03/14 19:35 UTC
Read the original article Hit count: 356

Filed under:
|
|
|

i use this code to fill dropdownlist

ViewData["projectType"] = new SelectList(_dataManager.Project.ProjectTypeList(), "Id", "Name");

but what i must do if i want to use not one table column but two or more columns? for example

ViewData["projectType"] = new SelectList(_dataManager.Project.ProjectTypeList(), "Id", "Name1"+"Name2");

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about dropdownlist