如何从View(aspx页面)中访问ModelState?

时间:2009-06-26 13:36:06

标签: asp.net asp.net-mvc view modelstate

如何从我的View(aspx页面)中访问ModelState?

1 个答案:

答案 0 :(得分:174)

使用ViewContext.ViewData.ModelState