title: data-val attributes not generated in partialview created with Html.ActionLink in ASPNET MVC3
body: <p>I've this structure</p>
  
  <pre><code>View
  
      Html.RenderPartial (1)
  
      Html.RenderPartial (2)
  </code></pre>
  
  <p>Then in each one of those Partial Views I have </p>
  
  <pre><code> @Ajax.ActionLink("Edit", "EditMethod", null, new AjaxOptions
                 {
                     HttpMethod = "POST",
                     InsertionMode = InsertionMode.Replace,
                     UpdateTargetId = "divEditContent"
                 }, new { @class = "my-edit" })
  </code></pre>
  
  <p>And when clicked it renders another partial,replacing the div "divEditContent" with something like: </p>
  
  <pre><code>public PartialViewResult EditContactInformation()
  {
      return PartialView("_MyEdit", GetDetails());
  }
  </code></pre>
  
  <p>_MyEdit partial has something like:</p>
  
  <pre><code>    @using (Ajax.BeginForm("SaveContactInformation", "MyBsol", new AjaxOptions
      {
          HttpMethod = "POST",
          InsertionMode = InsertionMode.Replace,
          UpdateTargetId = "divContactInformationContent"
      }))
      {
       &lt;script type="text/javascript"&gt;
              $(function () {
                  $('form#ajaxForm').find('a.submit-link').click(function () {
                      $('form#ajaxForm').submit();
                  });
              })
          &lt;/script&gt;
      &lt;a href="#" class="submit-link"&gt;Save&lt;/a&gt;
      @Ajax.ActionLink("Cancel", "CancelEdit", null, new AjaxOptions
                             HttpMethod = "POST",
                             InsertionMode = InsertionMode.Replace,
                             UpdateTargetId = "divContent"
                         }, new { @class = "my-cancel" })
       @Html.TextBoxFor(model =&gt; model.Title, new { @class = "txt-input", placeholder = "Eg. Mr, Mrs, Ms" })
      @Html.ValidationMessageFor(model =&gt; model.Title)
      }
  </code></pre>
  
  <p>The problem is that data-val atttributes are not rendered for the input, BUT if I put the last partial (_MyEdit) where the Ajax.ActionLink (1) it DOES render them. </p>
  
  <p>Is this a bug? Any workaround?
  Thanks in advance! Guillermo</p>
  
  <p><strong>UPDATE</strong></p>
  
  <p>I've found something really interesting, if I go (in Chrome or Firefox with Firebug) and click on View Source I don't see data-val attributes, but if I click on Inspect Element  I see them..weird...</p>