日期:2014-05-17 浏览次数:20821 次
var selectList = new SelectList(school, "Name", "Name");
this.ViewData["list"] = selectList;
Source Source = new Source();
var source = schoolRepository.SourceGetAll();
var selectList2 = new SelectList(source, "SourceName", "SourceName");
this.ViewData["list2"] = selectList2; <li>
<div class="label">
信息来源:</div>
<div class="list select">
@Html.DropDownList("list2", "---信息来源---")
@Html.DropDownList("list", "--来源幼儿园--")
</div>
</li>