Author: newbie06 | Posted on: 4/17/2009 2:35:43 PM | Views : 341

I am using a ModalPopupWindow with the ModalPopupExtender. The linkButton that triggers the ModalPopupExtender is in a ListView/ItemTemplate. How can I assign the linkButton to the TargetControlID of the ModalPopupExtender

 I tried this but it is not working
ModalPopupExtenderReportThisPost.TargetControlID = (LinkButton)ListViewThread.Controls[0].FindControl("LinkButtonReportThisPost");
ModalPopupExtenderShareThisPost.TargetControlID = (LinkButton)ListViewThread.Controls[0].FindControl("LinkButtonShareThisPost"); Go to the complete details ...