How do I access the ModelState from within my View (aspx page)?

后端 未结 1 1701
情书的邮戳
情书的邮戳 2021-01-30 06:08

How do I access the ModelState from within my View (aspx page)?

相关标签:
1条回答
  • 2021-01-30 06:34

    Use ViewContext.ViewData.ModelState.

    0 讨论(0)
提交回复
热议问题