title: ASP.NET MVC3 Html.EditorFor() problem
body: <p>i try to bind data to model with Html.EditorFor() helper and submit, but model come to controller is null. </p>
  
  <p>Here is code of model:</p>
  
  <pre><code>public class LogOnModel
  {
      [LocalizedRequired]
      [LocalizedDisplayName("User Name")]
      public string UserName { get; set; }
  
      [LocalizedRequired]
      [DataType(DataType.Password)]
      [LocalizedDisplayName("Password")]
      public string Password { get; set; }
  
      [LocalizedDisplayName("Remember Me")]
      public bool RememberMe { get; set; }
  }
  </code></pre>
  
  <p>this is cshtml:</p>
  
  <pre><code>@model Models.LogOnModel
  {
      View.Title = "Log On";
  }
  @using (Html.BeginForm())
  {
      @Html.EditorFor(m =&gt; m.UserName);
      @Html.EditorFor(m =&gt; m.Password);
      &lt;input type="submit" value="LogOn" /&gt;
  }
  </code></pre>
  
  <p>and html code is generate like this:</p>
  
  <pre><code>&lt;input id="UserName_UserName" name="UserName.UserName" type="text" value="qwerty" /&gt;
  &lt;input id="Password_Password" name="Password.Password" type="password" /&gt;
  </code></pre>
  
  <p>it seems like error in html-generated code, it should be id="someid" value="somevalue", but not id="someid_someid" value="somevalue.somevalue"</p>