title: To open a popup window on clicking link button in grid view
body: <p>In the below code i have a grid view inside grid view i have a link button when i click the link button it should open a popup window .pls help me to do this.</p>
  
  <pre><code>&lt;asp:TemplateField HeaderText="Edit" itemstyle-width="150px"&gt;
                              &lt;ItemTemplate&gt;
                                  &lt;asp:LinkButton ID="btnEdit" runat="server" CommandName="Edit" Text="Edit" CausesValidation="false"/&gt;
                              &lt;/ItemTemplate&gt;    
                          &lt;/asp:TemplateField&gt;  
  </code></pre>
  
  <p>Codebehind:</p>
  
  <pre><code>if (e.CommandName.Equals("Edit"))
   {
  
                      LinkButton btnView = (LinkButton)e.CommandSource;
   Response.Redirect("NewDocument.aspx?DID=" + lblDocumentID.Text.ToString(), true);
                  } 
  </code></pre>