Hi,
I need to create a PopupControlExt ender dynamically, and attach it to
a LinkButton. i.e., when the LinkButton is clicked, I would like to
display a given literal control to the user. So, I tried the following
code:
LinkButton link = new LinkButton();
link.ID = "imgOtherAttrib utes" + caid;
link.CausesVali dation = false;
link.Text = "other options";
LiteralControl lit2 = new LiteralControl( );
lit2.ID = "popupWnd" + caid;
lit2.Text = "<div style='display: none;width:200p x;height:
200px;backgroun d-color:red;'>tes t</div>";
AjaxControlTool kit.PopupContro lExtender popup = new
AjaxControlTool kit.PopupContro lExtender();
popup.ID = "popup" + caid;
popup.TargetCon trolID = link.ID;
popup.PopupCont rolID = lit2.ID;
popup.Position = AjaxControlTool kit.PopupContro lPopupPosition. Right;
However, the LiteralControl isn't shown!
Any idea?
Thanks
Jack
I need to create a PopupControlExt ender dynamically, and attach it to
a LinkButton. i.e., when the LinkButton is clicked, I would like to
display a given literal control to the user. So, I tried the following
code:
LinkButton link = new LinkButton();
link.ID = "imgOtherAttrib utes" + caid;
link.CausesVali dation = false;
link.Text = "other options";
LiteralControl lit2 = new LiteralControl( );
lit2.ID = "popupWnd" + caid;
lit2.Text = "<div style='display: none;width:200p x;height:
200px;backgroun d-color:red;'>tes t</div>";
AjaxControlTool kit.PopupContro lExtender popup = new
AjaxControlTool kit.PopupContro lExtender();
popup.ID = "popup" + caid;
popup.TargetCon trolID = link.ID;
popup.PopupCont rolID = lit2.ID;
popup.Position = AjaxControlTool kit.PopupContro lPopupPosition. Right;
However, the LiteralControl isn't shown!
Any idea?
Thanks
Jack
Comment