title: how to render a full view using Ajax.BeginForm
body: <p>I have a partial view which has a Ajax.BeginForm, with a UpdateTargetID set. When the validation on the form fails the update target id is replaced with the validation errors, but when there are no validation errors users should be redirected to a new page.</p>
  
  <p>The code in my Partial view is </p>
  
  <pre><code>&lt;div id="div_UID"&gt;
      &lt;% using (Ajax.BeginForm("FindChildByUID", new AjaxOptions { UpdateTargetId = "div_UID" } ))
         {%&gt;
              &lt;p&gt;
                  &lt;label&gt;UID:&lt;/label&gt;
                  &lt;%= Html.TextBox("UID") %&gt;
              &lt;/p&gt;
              &lt;input type="submit" value="Continue" /&gt;
       &lt;% } %&gt;
   &lt;/div&gt;
  &lt;/pre&gt;
  </code></pre>
  
  <p>The code in my controller is as follows</p>
  
  <pre><code>    [AcceptVerbs(HttpVerbs.Post)]
      public ActionResult FindChildByUID(Student student)
      {
  
          Student matchingStudent = _studentService.FindChildByUID(student.UID);
          if (matchingStudent == null)
          {
              ModelState.AddModelError("UID", String.Format("No matching child found for the entered UID: {0}", student.UID));
  
              return PartialView();
  
          }
          else
          {
              // full view
              return RedirectToAction("ConfirmChildDetails", matchingStudent);
          }
      }
  </code></pre>
  
  <p>So, for I have been unsuccessful to display the full view on it's own, as it always seems to dipslay the full view in the UpdateTargetID div specfied in the Ajax.BeginForm.</p>
  
  <p>Any suggestions on how I can get this to work?</p>
  
  <p>Thanks</p>