title: ASP.NET MVC 2 - how to get Ajax.BeginForm work properly inside partial view
body: <p>I have a View with url like</p>
  
  <blockquote>
    <p>/Home/SetResults?patientId=[somePatientId]</p>
  </blockquote>
  
  <p>, part of it gets conditionaly ajax-updated with some partialview</p>
  
  <p>Inside of that partialView I have this code</p>
  
  <pre><code>&lt;% using (Ajax.BeginForm("Action", "Home", new AjaxOptions { UpdateTargetId = "placeholder", InsertionMode = InsertionMode.Replace,HttpMethod = "Post"})) 
  {%&gt;
  &lt;div id="placeholder"&gt;
  ....
  </code></pre>
  
  <p>Whenever I press submit button I get to my simple controller action-method </p>
  
  <pre><code>[HttpPost]
  public ActionResult Action(MyModel model)
  {
   return PartialView();
  }
  </code></pre>
  
  <p>Everything works fine except the ajax itself - instead of gettin my placeholder updated with the result of controller action I'm always getting redirect to a view with the url of</p>
  
  <blockquote>
    <p>/Home/Action</p>
  </blockquote>
  
  <p>So, is it possible to partially update partial view? If yes what I'm doin wrong?</p>