title: open a ajax modelpopup on gridview link button
body: <p>I am trying to open a ModalPopup on GridView LinkButton, but when I am giving LinkButton ID to targetcontrolid of pop up, it is not accepting.
  Please help me.</p>
  
  <pre><code>&lt;asp:GridView ID="grdView" runat="server" AutoGenerateColumns="False" CellPadding="0"
              ForeColor="#333333" GridLines="None" onrowdatabound="grdView_RowDataBound"&gt;
      &lt;Columns&gt;
          &lt;asp:TemplateField HeaderText="Dr. Photo"&gt;
              &lt;ItemTemplate&gt;
                  &lt;asp:Image ID="Image1" runat="server" Style="height: 80px; width: 100px;" ImageUrl='&lt;%#  String.Format("~/Upload/Docters/" + Eval("ImgName")) %&gt;' /&gt;
              &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
          &lt;asp:BoundField DataField="Name" HeaderText="Name" ItemStyle-Width="150px" &gt;
          &lt;ItemStyle Width="150px"&gt;&lt;/ItemStyle&gt;
          &lt;/asp:BoundField&gt;
  
          &lt;asp:BoundField DataField="Qualification" HeaderText="Qualification"
              ItemStyle-Width="50px" &gt;
          &lt;ItemStyle Width="50px"&gt;&lt;/ItemStyle&gt;
          &lt;/asp:BoundField&gt;
          &lt;asp:TemplateField HeaderText="Click to Contact"&gt;
          &lt;ItemTemplate&gt;
          &lt;asp:LinkButton ID="popup" runat="server" Text="Click to Contact"&gt;&lt;/asp:LinkButton&gt;
          &lt;/ItemTemplate&gt;
          &lt;/asp:TemplateField&gt;
      &lt;/Columns&gt;
  &lt;/asp:GridView&gt;
  
  &lt;ajaxToolKit:ModalPopupExtender id="ModalPopupExtender1" runat="server"
      cancelcontrolid="btncancel" okcontrolid="btnSend"
      targetcontrolid="Button1" popupcontrolid="Panel1"
      popupdraghandlecontrolid="PopupHeader" drag="true" backgroundcssclass="ModalPopupBG"&gt;
  &lt;/ajaxToolKit:ModalPopupExtender
  </code></pre>