title: Client-side validation does not work when inherting from RequiredAttribute in ASP.NET MVC 3?
body: <p>I created an inherited attribute like this in ASP.NET MVC3:</p>
  
  <pre><code>public sealed class RequiredFromResourceAttribute : RequiredAttribute
  {
      public RequiredFromResourceAttribute(string errorResourceName, string errorResourceTypeName)
      {
          this.ErrorMessageResourceName = errorResourceName;
          this.ErrorMessageResourceType = Type.GetType(errorResourceTypeName);
      }
  }
  </code></pre>
  
  <p>And use it like this:</p>
  
  <pre><code>[RequiredFromResource("Title", "Resources.Resource, MyProject.Mvc, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null")]
  public string Title { get; set; }
  </code></pre>
  
  <p>It didn't work and the MVC ignored it. Then I create a simpler class which just inherited from RequiredAttribute like this:</p>
  
  <pre><code>public class MyRequiredAttribute : RequiredAttribute
  {
  }
  </code></pre>
  
  <p>I use it like that I said. But it didn't work again.</p>
  
  <p><strong>Although, all these ways work on "DisplayNameAtrribute" perfectly.</strong></p>
  
  <p>What is the problem?</p>