title: MVC 3, (razor) load partial with validation
body: <p>Hi I'm prototpying an ajax wizard with MVC 3 (razor). An oddity I've notice is when you return a partial view to UpdateTargetId plugs the view in but doesn't add/apply the Unobtrusive JavaScript. If I load the partial view outside the ajax block e.g.</p>
  
  <pre><code>@Html.Partial("Company")
  </code></pre>
  
  <p>It works perfectly so I'm not missing any of the standard libraries and 
  My web config is all good. </p>
  
  <p>
  </p>
  
  <p>So at the moment I'm little stumped. </p>
  
  <p>My view is the following:</p>
  
  <pre><code>@using(Ajax.BeginForm("Step", "Origination", new AjaxOptions { UpdateTargetId = "stepArea" })){
  
      &lt;div id="stepArea"&gt;&lt;/div&gt;
     &lt;input id="btnSubmit" type="submit" value="submit" /&gt;
  }
  </code></pre>
  
  <p>Controller: </p>
  
  <pre><code>public ActionResult Step(FormCollection formCollection)
  {
      if (this.Request.IsAjaxRequest())
      {
          switch ((TempData["step"] as string))
          {
              case "Company":
                  TempData["step"] = "Person";
                  return PartialView("Company");
  
              case "Person":
                  TempData["step"] = "Pay";
                  return PartialView("Person");
  
              case "Settlement":
                  return PartialView("Pay");
  
              default:
                  TempData["step"] = "Company";
                  return PartialView("UserType");
          }
      }
      return View();
  }
  </code></pre>
  
  <p>My Question is can the validation from the partial view be initalised/implemented from the partial refresh?</p>