阅读背景:

使用ASP MVC重新填充下拉列表,不需要查询数据库

来源:互联网 

Problem

问题

I have a list of view models. Most of the view models have a dropdown input. When the ModelState is valid everything goes fine and I am able to handle inputting the data however when an error occurs in the form validation everything goes a mess because the dropdown menus need to be repopulated with data. This is a bit of a problem because each view model has a different dropdown list.I have a list of view models. Mo




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

分享到: