阅读背景:

MVC 5 MultiSelectList选择的值不工作

来源:互联网 

I have a ListBox in a View displaying the possible choices. However, the user's role(s) are not shown as selected. In my UserViewModel the Roles collection contains the complete list of roles, and AspNetRoles collection contains only the roles to which the user belongs. I've tried multiple examples/variations but nothing ever shows as selected. I'm stuck.I have a ListBox in a View displaying the possi




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

分享到: