mvc3在view中获取是否有验证错误

@ViewData.ModelState.Where(a=>a.Value.Errors.Count > 0).Count()
原文地址:https://www.cnblogs.com/yeagen/p/2700903.html