ASP.NET MVC 3 下拉控件
时间:2011-06-15 来源:Ken-Cai
  public ActionResult Create()
  {
  ViewBag.GenreId = new SelectList(db.Genres, "GenreId", "Name");
  ViewBag.ArtistId = new SelectList(db.Artists, "ArtistId", "Name");
  return View();
  }
@Html.DropDownList("GenreId", String.Empty)
 相关阅读 更多 + 
    
  









