title: it seems like the whole page is refreshing even thought i am using Ajax.Beginform
body: <p>I have the following code that i am trying to change from a regular page to an ajax page so when i submit the form, i only refresh the LInkList div.  I change the using line to use Ajax.BeginForm</p>
  
  <p>Here is the View Code:</p>
  
  <pre><code>&lt;asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server"&gt;
  &lt;div id="LinkList"&gt;
      &lt;% Html.RenderPartial("TestUserControl", Model); %&gt;
  &lt;/div&gt;
  &lt;%using (Ajax.BeginForm("AddNewLink", "Test", new AjaxOptions { UpdateTargetId = "LinkList" }))
    { %&gt;
  &lt;fieldset style="text-align: left"&gt;
      &lt;legend&gt;Add New Link&lt;/legend&gt;
      &lt;table&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  Url:
              &lt;/td&gt;
              &lt;td&gt;
                  &lt;input style="width: 500px" type="text" name="url" /&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
          &lt;tr&gt;
              &lt;td&gt;
                  &lt;input type="submit" value="Add Link" name="submit" /&gt;
              &lt;/td&gt;
          &lt;/tr&gt;
      &lt;/table&gt;
  &lt;/fieldset&gt;
  &lt;% } %&gt;
  </code></pre>
  
  <p>Here is the Controller Code:</p>
  
  <pre><code>   [AcceptVerbs(HttpVerbs.Post)]
      public ActionResult AddNewLink(FormCollection collection_)
      {
          string url = collection_["url"].ToString();
  
          Test test = new Test();
          test.Name = DateTime.Now.ToString();
  
          if (Request.IsAjaxRequest())
          {
              return PartialView("TestUserControl", test);
          }
  
          return View("Index", test);
      }
  </code></pre>
  
  <p>Any idea why the whole page would refresh in this case instead of just whats inside the div tag?  Request.IsAjaxRequest() always returns false.</p>