title: GridView Paging Not Working When Page Is Called via Jquery
body: <p>I am working with asp.net page which calls another ASPX page containing GridView with paging inside update panel</p>
  
  <p>I call the page via jquery and its loading fine but when I click on Gridview paging, the Grid view disappears</p>
  
  <pre><code>&lt;div id = "divParent"&gt;
  
  &lt;/div&gt;
  </code></pre>
  
  <p></p>
  
  <pre><code>$(document).ready(function () {
     BindDiv('divParent', 'Parent.aspx');         
  });
  
  function BindDiv(DivID, url) {
          $('#' + DivID).empty();
          $('#' + DivID).append('&lt;img src="Images/ajax_loader.gif" alt="Loading..." /&gt;');
  
          $.get(url, function (response) {
              $('#' + DivID).empty();
              $('#' + DivID).append($(response).find('#ParentContainer')); 
  
          });
      }
  </code></pre>
  
  <p></p>
  
  <p>second aspx page code</p>
  
  <pre><code>&lt;div id = "ParentContainer"&gt;
      &lt;asp:UpdatePanel ID="UpdatePanel1" runat="server" ChildrenAsTriggers ="true" UpdateMode ="Conditional"&gt;
      &lt;ContentTemplate&gt;
      &lt;asp:GridView ID="gvParent" runat="server" SkinID="gvParent" AutoGenerateColumns="False"
          AllowSorting="true" AllowPaging="true" PageSize="10" OnPageIndexChanging="gvParent_PageIndexChanging"&gt;
          &lt;Columns&gt;
              &lt;asp:TemplateField HeaderText="Customer ID" SortExpression="CustomerID"&gt;
                  &lt;ItemTemplate&gt;
                      &lt;asp:Label ID="lblCustomerID" runat="server" Text='&lt;%# Eval("CustomerID") %&gt;'&gt;&lt;/asp:Label&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;
              &lt;asp:TemplateField HeaderText="First Name" SortExpression="Fname"&gt;
                  &lt;ItemTemplate&gt;
                      &lt;asp:Label ID="lblFname" runat="server" Text='&lt;%# Eval("Fname") %&gt;'&gt;&lt;/asp:Label&gt;
                  &lt;/ItemTemplate&gt;
              &lt;/asp:TemplateField&gt;
          &lt;/Columns&gt;
      &lt;/asp:GridView&gt;
      &lt;/ContentTemplate&gt;
      &lt;/asp:UpdatePanel&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>plz help
  thanks in advance</p>