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

后端 未结 1 1707
情书的邮戳
情书的邮戳 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)
提交回复
热议问题