Vikram

Vikram

  • 1.5k
  • 276
  • 308.4k

Problem with targetControlID in Modal popup Extender

Jun 25 2010 9:16 AM
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)