Data-annotation getting errormessage out database
        Posted  
        
            by Masna
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Masna
        
        
        
        Published on 2010-06-07T22:24:10Z
        Indexed on 
            2010/06/07
            22:32 UTC
        
        
        Read the original article
        Hit count: 312
        
Hello,
With asp.net mvc you can use the annotation [Required (errormessage="This is required")]
How can I create something like this:
[Required (errormessage="ERRORXX")]
So I can look up in a database what this ERRORXX is and display it on my form. Now my form displays ERRORXX.
How can I create something that solves my problem?
Thx!
© Stack Overflow or respective owner