我想在我的asp.net mvc 3应用程序中为我的dropdownlistbox创建一个partialview。 在我的网页我有:@ Html.Action for Razor
@Html.Action("PopulateCombo","ComboController")
控制器partialview:
public ActionResult PopulateCombo()
{
//some code here to organise data and maybe some caching
return ItemsForCombo;
}
有一个模板化的下拉框一个更好的办法?