title: Using AJAX to load a partial view not working
body: <p>Forgive me, I am new to MVC and AJAX.</p>
  
  <p>Currently I am simply submitting a form, and I want to use the data from the form to update a table in a partial view using ajax.</p>
  
  <p>My <code>_UserInfo</code> partial view looks like this:</p>
  
  <pre><code>@model IEnumerable&lt;Dashboard.Models.UserInfo&gt;
  &lt;table&gt;
      &lt;tr&gt;
          &lt;th&gt;
             Firstname
          &lt;/th&gt;
          &lt;th&gt;
             Lastname
          &lt;/th&gt;
          &lt;th&gt;
              EmailAddress
          &lt;/th&gt;
          &lt;th&gt;
          &lt;/th&gt;
      &lt;/tr&gt;
  @foreach (var item in Model) {
      &lt;tr&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.firstName)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.surname)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.emailAddress)
          &lt;/td&gt;
          &lt;td&gt;
              @Html.DisplayFor(modelItem =&gt; item.SAMuserName)
          &lt;/td&gt;
      &lt;/tr&gt;
  }
  &lt;/table&gt;
  </code></pre>
  
  <p>My main <code>User</code> view looks like this:</p>
  
  <pre><code>@model Dashboard.Models.User
  @Scripts.Render("~/bundles/jqueryval")
  
  @using (Ajax.BeginForm("_UserInfo", "User", new AjaxOptions()
                          {
                              HttpMethod = "GET",
                              UpdateTargetId = "results",
                              InsertionMode = InsertionMode.Replace
                          }))
  {
  
      &lt;fieldset&gt;
      //...My Form 
  
          &lt;p&gt;
              &lt;input type="submit" value="Find" /&gt;
          &lt;/p&gt;
      &lt;/fieldset&gt;
  }
  
  &lt;div id="results"&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>And last this is my <code>UserController</code>:</p>
  
  <pre><code>public PartialViewResult UserResults(User person)
  {
      UserInfo personInfo = new UserInfo();
  
      //....Doing stuff
  
      return PartialView("_userInfo", personInfo);
  }
  </code></pre>
  
  <hr>
  
  <p>Now I know this probably isnt good. But this is the best attempt I have tried with my little knowledge.</p>
  
  <p>When I click the button on the User view, I am getting a 404 error saying that _UserInfo cannot be found.</p>
  
  <p>I believe that the source of all of my issues is in</p>
  
  <pre><code> @using (Ajax.BeginForm("_UserInfo", "User", new AjaxOptions()
                          {
                              HttpMethod = "GET",
                              UpdateTargetId = "results",
                              InsertionMode = InsertionMode.Replace
                          }))
  </code></pre>
  
  <p>But with my knowledge, I don't know what is wrong.</p>
  
  <hr>
  
  <p>*<em>EDIT:</em>*As it has been pointed out to me, I was creating my HTML form incorrectly. I have since changed  it to </p>
  
  <blockquote>
    <p>@using (Ajax.BeginForm("UserResults", "User", new
    AjaxOptions(){...}</p>
  </blockquote>
  
  <p>My action is now being called! However, my partial view is not being loaded onto the screen.</p>