title: Using paging in partial view, asp.net mvc
body: <p>I'd greatly appreciate if someone could advise on following:
  In my view I display the list of items:</p>
  
  <pre><code>@model PagedList.IPagedList&lt;Items&gt;
  @using PagedList.Mvc; 
   @foreach (var item in Model)
            {//displaying data}
  </code></pre>
  
  <p>my pager looks like this:</p>
  
  <pre><code>@Html.PagedListPager(Model, page =&gt; Url.Action("Index", new { humanID = ViewBag.HumanID, page = page }),
                                                               new PagedListRenderOptions
                                                               {
                                                                          LinkToFirstPageFormat = "&lt;&lt;",
                                                                          LinkToPreviousPageFormat = "prev",
                                                                          LinkToNextPageFormat = "next",
                                                                          LinkToLastPageFormat = "&gt;&gt;",
  
                                                                })
  </code></pre>
  
  <p>The problem is that when I click on the next page it is returned blank, without my <code>_Layout</code>. I wouldn't like to reload _Layout all the time. Is there a way to use Ajax.ActionLink for pager? So that I could <code>UpdateTargedId</code> inside my partial view?</p>