title: set dynamic data annotation error message from controller in asp.net mvc
body: <p>I am creating asp.net mvc application in which I storing my error messages in my database, now I want to use required field annotation instead of custom js validations when user clicks submit, my models looks like below,</p>
  
  <pre><code>[Required(ErrorMessage = "static error message")]
  public string AttributeValue { get; set; }
  </code></pre>
  
  <p>I want to add dynamic error message instead of -> (static error message)</p>
  
  <p>is there a way to add dynamic error message from controller.</p>