<%=Html.DropDownListFor(model => model.PID, (IEnumerable<SelectListItem>)ViewData["MainItemOfGame"], "请选择")%>

 

 

 

ViewData的名不能和DropDownList的name 相同,否则,DropDownList不会设为model => model.PID的值对应的选项。

 

 

posted on 2010-11-18 16:19  默西塞德  阅读(1389)  评论(2编辑  收藏  举报