title: How to show GridView in jQuery popup with GridView Paging?
body: <p>I'm unable to show GridView in jQuery popup. GridView contains it's page index_changing event.</p>
  
  <p>My .aspx code is below:</p>
  
  <pre><code>&lt;asp:GridView ID="GridView1" runat="server" AllowPaging="True" PageSize="3" OnPageIndexChanging="GridView1_PageIndexChanging"&gt;
  &lt;/asp:GridView&gt;
  &lt;br&gt;
  &lt;asp:LinkButton ID="lnkBtnPopup" runat="server" onclick="lnkBtnPopup_Click"&gt;Show PopUp&lt;/asp:LinkButton&gt;
  </code></pre>
  
  <p>CS code as below:</p>
  
  <pre><code>protected void lnkBtnPopup_Click(object sender, EventArgs e)
  {
      GridView1.DataSource = GetData();
      GridView1.DataBind();
  }
  
  protected void GridView1_PageIndexChanging(object sender, GridViewPageEventArgs e)
  {
      GridView1.DataSource = GetData();
      GridView1.PageIndex = e.NewPageIndex;
      GridView1.DataBind();
  }
  </code></pre>
  
  <p>jQuery as below:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
      $("[id*=lnkBtnPopup]").live("click", function () {
          $("#GridView1").dialog({
              title: "Image Details",
              width: "200px",
              buttons: {
                  Close: function () {
                      $(this).dialog('close');
                  }
              }
          });
          return false;
      });
  &lt;/script&gt;`
  </code></pre>
  
  <p>I want to show Grid with paging in jQuery popup when I click on LinkButton.
  The code is not working.</p>