ViewModel getting null values in action method

后端 未结 2 1703
北海茫月
北海茫月 2020-12-10 18:49

I am using a ViewModel to retrieve entered data in controller action. But the ViewModel is getting empty values in it\'s properties. I am creating one partial view

2条回答
  •  悲&欢浪女
    2020-12-10 19:03

    You cannot bind a dropdownlist to a collection of complex objects - in your case IEnumerable and IEnumerable

    A

    提交评论

提交回复
热议问题