title: About Popup Window in ASP.Net
body: <p>I have a <code>gridview</code> which contains a <code>details button</code> as the last column.</p>
  
  <p>My aspx:</p>
  
  <pre><code>&lt;asp:GridView Width="100%" ID="gv_NotApplied" CssClass="datatable" AllowSorting="True"
      runat="server" TabIndex="2" AutoGenerateColumns="False" AllowPaging="True" GridLines="None"&gt;
      &lt;Columns&gt;
          &lt;asp:TemplateField HeaderText="serial"&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Label ID="lblSerial" runat="server"&gt;&lt;/asp:Label&gt;
  
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:BoundField HeaderText="name" DataField="crs_name" /&gt;
          &lt;asp:BoundField HeaderText="lecturer" DataField="name" /&gt;
          &lt;asp:TemplateField HeaderText="details"&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:ImageButton ID="Ibtn_Details" runat="server" ImageUrl="~/Images/detail.png"
                      CommandArgument='&lt;%#((GridViewRow)Container).RowIndex%&gt;' CommandName="Detail"
                      CausesValidation="false" /&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
      &lt;/Columns&gt;
      &lt;RowStyle VerticalAlign="Top" CssClass="row" /&gt;
  &lt;/asp:GridView&gt;
  </code></pre>
  
  <hr>
  
  <p>What I would like to do is:</p>
  
  <ul>
  <li><p>When the user clicks the <code>details button</code>, open <strong>a pop up window (dialog window)</strong>.</p></li>
  <li><p>In this window I would like to put some asp.net server controls in (like grid views). So I want this window to enable/allow me to access those controls in the code behind.</p></li>
  </ul>