ModelState.AddModelError showing error twice

Posted by parminder on Stack Overflow See other posts from Stack Overflow or by parminder
Published on 2010-04-11T07:22:17Z Indexed on 2010/04/11 7:23 UTC
Read the original article Hit count: 550

Filed under:
|

Hi Experts,

With MVC stuff when there is an error on property leve, we can add error to modelstate but the same error is added to the summary also. How can we avoid to display it twice.

I want to display only public errors in the message summary and all other at property level.

Regards Parminder

© Stack Overflow or respective owner

Related posts about asp.net-mvc

Related posts about c#