我有一个ajax PopUpExtender outide 一个Repeter, 它必须是因为我动态地在其他控件上使用它
我希望弹出扩展程序将由Repeater中的linkButton命令激活, 我无法弄清楚如何将TargetID现在添加到popupID 这是我的最后一次拍摄:
protected void lb_viewFileClick(object sender, CommandEventArgs e)
{
LinkButton lb = (LinkButton)sender;
MDL_CD.TargetControlID = lb.ID;// I've also tried with ClientID
MDL_CD.Show();
HideControls();
UC_ViewFile.Visible = true;
PNL_CD.Visible = true;
}
答案 0 :(得分:0)
搞清楚了!
protected void rp_ProfileFils_ItemCommand(object source, RepeaterCommandEventArgs e)
{
int Index = e.Item.ItemIndex;
LinkButton lb = (LinkButton)rp_ProfileFils.Items[Index].FindControl("hp_File");
MDL_CD.TargetControlID = e.Item.UniqueID + "$hp_File";
}