ASP.NET MVC Binding - Duplicated Messages
        Posted  
        
            by Rodrigo Gama
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Rodrigo Gama
        
        
        
        Published on 2010-06-10T19:12:43Z
        Indexed on 
            2010/06/10
            21:22 UTC
        
        
        Read the original article
        Hit count: 405
        
asp.net-mvc
|binding
I'm using ASP.NET MVC Binding Framework.
Let's say I have a class Item, that has a mandatory field Id.
I am binding a List, and do not want one error message for each element in this list.
If more then one error happen when binding the Id field, I want only one message to be added to ModelState and shown to the user.
In one sentence: Is there a way to avoid duplicated messages using ASP.NET MVC Binding Framework?
© Stack Overflow or respective owner