title: Show hide div containing gridview between postback
body: <p>Hi I am new to using jquery , I am having a doubt how to implement this scenario :-</p>
  
  <p>I have div element which should be initially hidden on the page load, whenever I click a button which is going to do a postback and populate the grid present inside the div , then the div should become visible after the postback.</p>
  
  <pre><code>&lt;asp:button ID="btngetgrid" runat="server" OnClick="btngetgrid_Click"&gt;
  
  &lt;div id="mydiv" runat="server"&gt;
  &lt;asp:gridview runat="server" Id="grddisplay"/&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>On .cs file</p>
  
  <pre><code>protected void btngetgrid_click()
  {
   code to populate grid
  }
  </code></pre>