title: To open a popup window on clicking link button in grid view control
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:GridView ID="gvActList" runat="server" Font-Size="Smaller" Width="100%" CssClass="tableStyle"
  EmptyDataText="No Data Found" AllowPaging="false"
  CellPadding="4" AutoGenerateColumns="False" OnRowDataBound="gvActList_RowDataBound"&gt;
  &lt;FooterStyle Font-Bold="True" CssClass="tablefooter" /&gt;
  &lt;RowStyle CssClass="tableRow1" /&gt;
  &lt;SelectedRowStyle Font-Bold="True" CssClass="tableRowHighlight" /&gt;
  &lt;HeaderStyle Font-Bold="True" CssClass="tableHeader" Font-Size="9px" /&gt;
  &lt;Columns&gt;
      &lt;asp:TemplateField HeaderText="TM Activity Code" HeaderStyle-HorizontalAlign="Center"&gt;
          &lt;ItemStyle Width="5%" HorizontalAlign="Left"&gt;&lt;/ItemStyle&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:Label ID="lbl_Activity_Code" runat="server" Visible="true" Text='&lt;%# Bind("ACTIVITY_CODE") %&gt;'&gt;&lt;/asp:Label&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
      &lt;asp:TemplateField HeaderText="Description" HeaderStyle-HorizontalAlign="Center"&gt;
          &lt;ItemStyle Width="19%" HorizontalAlign="Left"&gt;&lt;/ItemStyle&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:Label ID="lbl_ACTDESC" runat="server" Text='&lt;%# Bind("ACTIVITY_DESC") %&gt;' Visible="true"&gt;&lt;/asp:Label&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
      &lt;asp:TemplateField HeaderText="User Details" HeaderStyle-HorizontalAlign="Center"&gt;
          &lt;ItemStyle Width="5%"&gt;&lt;/ItemStyle&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:Label ID="lbl_User_Details" runat="server" Text='&lt;%# Bind("CREATED_BY") %&gt;' Visible="true"&gt;&lt;/asp:Label&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
      &lt;asp:TemplateField HeaderText="Type" HeaderStyle-HorizontalAlign="Center"&gt;
          &lt;ItemStyle Width="5%"&gt;&lt;/ItemStyle&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:Label ID="lbl_PROMO_TYPE" runat="server" Text='&lt;%# Bind("PROMO_TYPE") %&gt;' Visible="true"&gt;&lt;/asp:Label&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
      &lt;asp:TemplateField HeaderText="Category" HeaderStyle-HorizontalAlign="Center"&gt;
          &lt;ItemStyle Width="5%"&gt;&lt;/ItemStyle&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:Label ID="lblCatgDescription" runat="server" Text='&lt;%# Bind("CATEGORY_CODE") %&gt;'
                  Visible="true"&gt;&lt;/asp:Label&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
      &lt;asp:TemplateField HeaderText="Date Range" HeaderStyle-HorizontalAlign="Center"&gt;
          &lt;ItemStyle Width="5%"&gt;&lt;/ItemStyle&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:Label ID="lblACTIVEFROM" runat="server" Text='&lt;%# Bind("ACTIVE_FROM") %&gt;' Visible="true"&gt;&lt;/asp:Label&gt;&amp;#160; To &amp;#160;
              &lt;asp:Label ID="lblACTIVETO" runat="server" Text='&lt;%# Bind("ACTIVE_TO") %&gt;' Visible="true"&gt;&lt;/asp:Label&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
      &lt;asp:TemplateField HeaderText="Activity Type" HeaderStyle-HorizontalAlign="Center"&gt;
          &lt;ItemStyle Width="5%"&gt;&lt;/ItemStyle&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:Label ID="lbl_Actvity_Type" runat="server" Text='&lt;%# Bind("ACTIVITY_TYPE") %&gt;' Visible="true"&gt;&lt;/asp:Label&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
      &lt;asp:TemplateField HeaderText="Current Status" HeaderStyle-HorizontalAlign="Center"&gt;
          &lt;ItemStyle Width="5%"&gt;&lt;/ItemStyle&gt;
          &lt;ItemTemplate&gt;
              &lt;asp:Label ID="lbl_Current_Status" runat="server" Text='&lt;%# Bind("status") %&gt;' Visible="true"&gt;&lt;/asp:Label&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
      &lt;asp:TemplateField HeaderText="View Details" HeaderStyle-HorizontalAlign="Center" ItemStyle-HorizontalAlign="Center"&gt;
          &lt;ItemTemplate&gt;
              &lt;itemstyle width="5%" /&gt;
              &lt;asp:LinkButton CssClass="l_link" Text="View" ID="lnkView" runat="server" ToolTip="View" /&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
      &lt;asp:TemplateField HeaderStyle-HorizontalAlign="Center"&gt;
          &lt;HeaderTemplate&gt;
              &lt;asp:Label ID="lblCap" Text="Confirm" runat="server"&gt;&lt;/asp:Label&gt;
          &lt;/HeaderTemplate&gt;
          &lt;ItemStyle HorizontalAlign="Center"&gt;&lt;/ItemStyle&gt;
          &lt;ItemTemplate&gt;
              &lt;itemstyle width="1%" font-size="2px" horizontalalign="Center" /&gt;
              &lt;table style="text-align: Center; vertical-align: text-top;"&gt;
                  &lt;tr&gt;
                      &lt;td style="width: 98%;"&gt;
                          &lt;asp:RadioButton ID="rdYes" runat="server" Text="Yes" GroupName="CH"&gt;&lt;/asp:RadioButton&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td style="width: 98%;"&gt;
                          &lt;asp:RadioButton ID="rdNo" runat="server" Text="No" GroupName="CH"&gt;&lt;/asp:RadioButton&gt;&lt;/td&gt;
                  &lt;/tr&gt;
                  &lt;tr&gt;
                      &lt;td style="width: 98%;"&gt;
                          &lt;asp:RadioButton ID="rdNone" runat="server" Text="None" GroupName="CH"&gt;&lt;/asp:RadioButton&gt;&lt;/td&gt;
                  &lt;/tr&gt;
              &lt;/table&gt;
          &lt;/ItemTemplate&gt;
      &lt;/asp:TemplateField&gt;
  &lt;/Columns&gt;
  &lt;EditRowStyle CssClass="tableRowHighlight" /&gt;
  &lt;RowStyle CssClass="odd_tb" /&gt;
  &lt;PagerStyle CssClass="foot_tbl" /&gt;
  &lt;AlternatingRowStyle CssClass="even_tb" /&gt;
  &lt;PagerSettings Mode="NextPreviousFirstLast" /&gt;
  </code></pre>
  
  <p></p>
  
  <p>.js file is given below</p>
  
  <pre><code>function view_Data(v_Act_Code) {
          window.open("viewApprovalDetails.aspx?ACTCODE=" + v_Act_Code, 'ViewChange', 'height=440,width=650,left=150,top=150,screenX=0,screenY=100');
      }
  </code></pre>
  
  <p>How can i open new pop up window by clicking on grid view link button 
  Thanks in advance</p>