Loop through Model properties in reflection, then use Html helpers to display. How to get concrete property back?

前端 未结 2 1390
青春惊慌失措
青春惊慌失措 2021-01-02 17:53

We have an MVC4 ASP.Net site that we are trying to use reflection to loop through properties of a model, and display the names/values/and other information using Html helper

2条回答
  •  春和景丽
    2021-01-02 18:05

    I believe that's not possible the way you want it. Try to use this instead :

    @Html.ValidationSummary()
    

提交回复
热议问题