title: Partial view render on button click
body: <p>I have Index view:</p>
  
  <pre><code>@using System.Web.Mvc.Html
  @model  MsmqTestApp.Models.MsmqData
  &lt;!DOCTYPE html&gt;
  &lt;html&gt;
  &lt;head&gt;
      &lt;script src="@Url.Content("~/Scripts/jquery.unobtrusive-ajax.min.js")" type="text/javascript"&gt;&lt;/script&gt;
      &lt;meta name="viewport" content="width=device-width" /&gt;
      &lt;title&gt;MsmqTest&lt;/title&gt;
  &lt;/head&gt;
  &lt;body&gt;
      &lt;div&gt;
          &lt;input type="submit" id="btnBuy" value="Buy" onclick="location.href='@Url.Action("BuyItem", "MsmqTest", new { area = "Msmq" })'" /&gt;
          &lt;input type="submit" id="btnSell" value="Sell" onclick="location.href='@Url.Action("SellItem", "MsmqTest", new { area = "Msmq" })'" /&gt;
      &lt;/div&gt;
      &lt;div id="msmqpartial"&gt;
      @{Html.RenderPartial("Partial1", Model); }
  
      &lt;/div&gt;
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>and partial:</p>
  
  <pre><code>@using System.Web.Mvc.Html
  @model  MsmqTestApp.Models.MsmqData
  
      &lt;p&gt;
          Items to buy
          @foreach (var item in Model.ItemsToBuy)
          { 
              &lt;tr&gt;
                  &lt;td&gt;@Html.DisplayFor(model =&gt; item)
                  &lt;/td&gt;
              &lt;/tr&gt;
          }
      &lt;/p&gt;
      &lt;p&gt;
          &lt;a&gt;Items Selled&lt;/a&gt;
          @foreach (var item in Model.ItemsSelled)
          { 
              &lt;tr&gt;
                  &lt;td&gt;@Html.DisplayFor(model =&gt; item)
                  &lt;/td&gt;
              &lt;/tr&gt;
          }
      &lt;/p&gt;
  </code></pre>
  
  <p>And controller:</p>
  
  <pre><code> public class MsmqTestController : Controller
      {
          public MsmqData data = new MsmqData();
  
          public ActionResult Index()
          {
  
              return View(data);
          }
  
          public ActionResult BuyItem()
          {
              PushIntoQueue();
              ViewBag.DataBuyCount = data.ItemsToBuy.Count;
              return PartialView("Partial1",data);
          }
  }
  </code></pre>
  
  <p>How to do that when i Click one of button just partial view render, now controller wants to move me to BuyItem view ;/</p>