阅读背景:

如何确定ModelState的哪个键有错误

来源:互联网 

How do I figure out which of the keys in ModelState that contains an error when ModelState.IsValid is false? Usually I would just hover the mouse thru the ModelState.Values list checking item by item for error count > 0. But now I'm working on a view that has some lists of complex objects, totalling 252 ModelState items(each item of each object of each list has an entry on ModelState.Keys).How do I figure out which of the keys in ModelS




你的当前访问异常,请进行认证后继续阅读剩余内容。

分享到: