Hi, i am a beginner at using gridviews and ajax control toolkit tools.
I am having difficulty setting the Modalpopup's TargetControlID with a LinkButton's ID which is inside a Gridview.
Error message :
The TargetControlID of 'ModalPopupExtender1' is not valid. A control with ID 'LinkButton1' could not be found.
Source Codes :
<asp:LinkButton ID="LinkButton1" runat="server" Text="Watch Online Now" OnClick="LinkButton1_Click"></asp:LinkButton> (In a Gridview)
<asp:ModalPopupExtender ID="ModalPopupExtender1" runat="server" BehaviorID="MPE"
OkControlID="btnOkay" TargetControlID="LinkButton1" PopupControlID="Panel1" PopupDragHandleControlID="PopupHeader"
Drag="True" BackgroundCssClass="ModalPopupBG" DynamicServicePath="" Enabled="True">
</asp:ModalPopupExtender> (outside of Gridview)