title: MVC 3 Ajax.BeginForm submit issue
body: <p>im trying to submit a form by pressing a button that eventually will refresh the table </p>
  
  <p>this is the form :</p>
  
  <pre><code>@{
  AjaxOptions ajaxOpts = new AjaxOptions
  {
      Confirm = "start ???",
      UpdateTargetId = "MainTable",
      InsertionMode = InsertionMode.Replace,
      Url = Url.Action("Refresh","MainScreen"),
      LoadingElementId = "loading",
      LoadingElementDuration = 2000,
  
  
  
  };}
  @using (Ajax.BeginForm(ajaxOpts)){
  
  &lt;div id="loading" style="display: none; color: Red; font-weight: bold"&gt;
      &lt;p&gt;
          Loading Data...&lt;/p&gt;
  &lt;/div&gt;
  
  &lt;div id="header"&gt;
  
      &lt;input type="button" value="Submit Form" /&gt;
  
  &lt;/div&gt;
  &lt;table id="MainTable"&gt;
      &lt;tr&gt;
          &lt;th&gt;
              ServiceId
          &lt;/th&gt;
          &lt;th&gt;
              ServiceInstanceId
          &lt;/th&gt;
          &lt;th&gt;
              MessageRole
          &lt;/th&gt;
          &lt;th&gt;
              Datetime
          &lt;/th&gt;
          &lt;th&gt;
              Message
          &lt;/th&gt;
          &lt;th&gt;
              Status
          &lt;/th&gt;
          &lt;th&gt;
              ESBErrorCode
          &lt;/th&gt;
          &lt;th&gt;
              ESBTecnicalErrorCode
          &lt;/th&gt;
          &lt;th&gt;
              ErrorDescription
          &lt;/th&gt;
          &lt;th&gt;
              PortName
          &lt;/th&gt;
          &lt;th&gt;
              MachineName
          &lt;/th&gt;
          &lt;th&gt;
              ConsumerId
          &lt;/th&gt;
          &lt;th&gt;
              ExternalId
          &lt;/th&gt;
          &lt;th&gt;
              ConsumerMachineName
          &lt;/th&gt;
          &lt;th&gt;
              ServiceBehavior
          &lt;/th&gt;
          &lt;th&gt;
              RouterConsumerId
          &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.ServiceId)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.ServiceInstanceId)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.MessageRole)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.Datetime)
              &lt;/td&gt;
              &lt;td&gt;
                  \
                  @Html.DisplayFor(modelItem =&gt; item.Message.Context)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.Status)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.ESBErrorCode)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.ESBTecnicalErrorCode)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.ErrorDescription)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.PortName)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.MachineName)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.ConsumerId)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.ExternalId)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.ConsumerMachineName)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.ServiceBehavior)
              &lt;/td&gt;
              &lt;td&gt;
                  @Html.DisplayFor(modelItem =&gt; item.RouterConsumerId)
              &lt;/td&gt;
          &lt;/tr&gt;
      }
  &lt;/table&gt;
  }
  </code></pre>
  
  <p>this is the Controler :</p>
  
  <blockquote>
    <p>public ViewResult Refresh()
            {</p>
  </blockquote>
  
  <pre><code>        var tracks = db.Tracks.Include(t =&gt; t.Message);
          return View(tracks.ToList());
      } 
  </code></pre>
  
  <p>for some reason when i submit the button nothing happen   </p>
  
  <p>i already added </p>
  
  
  
  <pre><code>&lt;script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"&gt;&lt;/script&gt;
  </code></pre>
  
  <p>thanks 
  miki</p>