title: Why does Ajax.BeginForm return partial view in another page
body: <p>I have a view that contains a form and a partial view that is called by Ilanlar Part.Form is for filtering partial view data.İf I submit form data to filter partial view data,action return partial view in another page.How to stay same page after submit form data with refreshing partial view data.</p>
  
  <pre><code>     *HTML*
                 @using (Ajax.BeginForm("IlanlarPart", "Ilanlar", FormMethod.Post, new AjaxOptions { OnSuccess = "success" }))
   {
            &lt;div class="panel-body"&gt;
                @Html.DropDownListFor(model =&gt; model.IlanKategoriID, new SelectList(Model.listKategoriler, "KategoriID", "KategoriAdi"), "Seçiniz", new { @class = "form-control" })
              &lt;/div&gt;
  
       &lt;div class="panel-group"&gt;
            &lt;button type="submit" id="btnSearch"&gt;Search&lt;/button&gt;
             &lt;/div&gt;
  
   }
  
    public ActionResult Index()
    {
              return View((IlanInfo)getData());
    }
  
    public ActionResult IlanlarPart()
    {
              getData();
              return PartialView("IlanlarPart", ilanInfo);
    }
  </code></pre>
  
  <p>// this action filter partial view data but it displays "Ilanlar Part" partial view in another page.</p>
  
  <pre><code>   [HttpPost]
      public ActionResult IlanlarPart(IlanInfo ilan)
      { 
          ilanInfo.listArsalar.Where(p =&gt; p.IlanKategoriID == ilan.IlanKategoriID).ToList();
  
          return  PartialView("IlanlarPart",ilanInfo);
  
      }
  </code></pre>