title: EditorFor and StringLength DataAnnotations
body: <p>I have the following property on my Model</p>
  
  <pre><code>        [Display(Name = "MyProperty")]
          [StringLength(10)]
          public string MyProperty
          {
              get;set;
          }
  </code></pre>
  
  <p>and the following EditorFor template</p>
  
  <pre><code>&lt;%@ Page Language="C#" MasterPageFile="Template.Master" Inherits="System.Web.Mvc.ViewPage" %&gt;
  &lt;asp:Content ID="Content1" ContentPlaceHolderID="Data" runat="server"&gt;
      &lt;%= Html.TextBox("", Model)%&gt;
  &lt;/asp:Content&gt;
  </code></pre>
  
  <p>The problem I have is that the StringLength property (understandably), isn't being set to limit the textbox size. My answer is how should I be obtaining the attributes to set in my template?</p>
  
  <p>Thanks</p>