阅读背景:

打开编辑视图时如何在html.dropdownlistfor框中显示所选值

来源:互联网 

in my action method I used

在我使用的行动方法中

ViewBag.type = new SelectList(
   db.UserDetails.AsEnumerable().GroupBy(x => x.type).Select(x => x.First()),
   "type",
   "type",
   user.type);
ViewB



你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: