2
Answers

Problem with targetControlID in Modal popup Extender

Vikram

Vikram

14y
8.7k
1
Hi,
  
   In my application, I am using one GridView. In the last column of the GridView I put link button in Item Template and One Modal Popup Extender Control in the page.
I want to show one Panel as a Popup on the Click of Link Button to Display details of that row.
  
   Following is the Code.

 <asp:ModalPopupExtender ID="mpeTest" runat="server" PopupControlID="pnlTest" TargetControlID="lbtnView"               CancelControlID="lbtnClose" >
 </asp:ModalPopupExtender>

TargetControlID="lbtnView"  here I am getting Error as this button is in the Item Template and can not be accessible directly in the Page.

So How do I popup the panel on click of the Link Button.

Any help appreciated......

Regards,

  Vikram 
Answers (2)