title: Ajax.BeginForm routing to new page instead of a partial view
body: <p>I have a Ajax.BeginForm call that is supposed to return a partial view but is rerouting the page to the Action instead. Any ideas on what is wrong?</p>
  
  <p><strong>Here is the code on the main page that I want to render the partial view on:</strong></p>
  
  <pre><code>    &lt;div class="col-md-6"&gt;
          @using (Ajax.BeginForm("Search", "Home", new AjaxOptions
          {
              HttpMethod = "GET",
              InsertionMode = InsertionMode.Replace,
              UpdateTargetId = "searchResults"
          }))
          {
  
          &lt;div class="form-group" style="width:85%;"&gt;
              &lt;div class="right-inner-addon"&gt;
                  &lt;i class=" glyphicon glyphicon-search"&gt;&lt;/i&gt;
                  &lt;input type="text" data-autocomplete="@Url.Action("Quicksearch","Home")" class="form-control" placeholder="Search" name="q" /&gt;
              &lt;/div&gt;
          &lt;/div&gt;
          &lt;div class="form-group"&gt;
              &lt;button class="btn btn-default form-inline" type="submit"&gt;Search&lt;/button&gt;
          &lt;/div&gt;
          }
          &lt;br /&gt;
  
      &lt;/div&gt;
  
  &lt;/div&gt;
  &lt;div id="searchResults"&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Here is the Partial view (items removed due to length):</strong></p>
  
  <pre><code>    &lt;div class="row" id="searchResults"&gt;
       ...removed form elements
         &lt;div class="row"&gt;
              &lt;table class="table"&gt;
      ....stuff
      &lt;/table&gt;
      &lt;/div&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>Here is the controller:</strong></p>
  
  <pre><code>   public PartialViewResult Search(string q)
      {
          var items = db.items_with_descriptions
              .Where(r =&gt; r.name.Contains(q) || string.IsNullOrEmpty(q))
              .Take(10);
          return PartialView("_Items", items);
      }
  </code></pre>
  
  <p>As stated above, when I click my search button it redirects to localhost:24942/Home/Search instead of staying on the page and simply loading the partial view. I am new to MVC, so please keep that in mind. :) </p>