How can i create a ModalPopupExtender control dynamically from a server control?

Posted by Colour Blend on Stack Overflow See other posts from Stack Overflow or by Colour Blend
Published on 2009-11-11T19:11:40Z Indexed on 2010/05/28 22:02 UTC
Read the original article Hit count: 153

I have a composite server control that does quiet a number of things; one of which is to display a ModalPopup OnClick of a dynamically generated HtmlAnchor control.

I need to create this ModalPopupExtender control dynamically in my server control and trigger it from within.

I have been able to create it and trigger it from a button created at design time but not at runtime. This is as a result of the ID assign to the link is always not found by the ModalPopupExtender control.

I have tried assigning a static ID but no success. Can anyone help?

© Stack Overflow or respective owner

Related posts about c#

Related posts about ASP.NET