title: how to open a different new pop window every time a button or link is clicked in a grid view
body: <pre><code>protected void gvPendingBinds_RowDataBound(object sender, GridViewRowEventArgs e)
  {
      if (e.Row.RowType == DataControlRowType.DataRow)
      {
          Label lblID = (Label)e.Row.FindControl("lblID");
          HyperLink hlOpen = (HyperLink)e.Row.FindControl("hlOpen");
          HyperLink hlEmail = (HyperLink)e.Row.FindControl("hlEmail");
          if (hlEmail.Text != "")
          {
              hlEmail.ToolTip = "Click to open email client with lead loaded";
              hlEmail.NavigateUrl = "mailto:" + hlEmail.Text + "?Subject=Business Insurance quote";
              hlEmail.Style.Add("Cursor", "pointer");
          }
  
          hlOpen.ToolTip = "Open more details";
          hlOpen.Attributes.Add("onclick", "javascript: window.open('LeadDetails.aspx?id=" + lblID.Text + "', 'window','HEIGHT=800,WIDTH=820,top=50,left=50,toolbar=no,scrollbars=yes,resizable=yes').focus();return true;");            
          hlOpen.Style.Add("Cursor", "pointer");            
  
      }
  } 
  </code></pre>
  
  <p>I keep getting the same popup window to open every time I click a different row's hyperlink, with different data. My client want multiple windows to open to view multiple prospect's data each time he clicked a different link in the grid.</p>