120

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

4

1 回答 1

186

使用ViewContext.ViewData.ModelState.

于 2009-06-26T13:37:55.770 回答