views:

266

answers:

2

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?

A: 

I figured it out. All i needed to do was recreate the HtmlAnchor control in the overridden CreateChildControls method on postback.

Thanks David for you concern.

Colour Blend
A: 

I'm trying to do something real similar to what you have described and am having problems with the ModalPopUpExtender. I have a label displayed with a linkButton for launching the Modal form.

I add all the controls to the page and then add the ModalPopup Extender. However, the panel I have added is displayed all the time at run time and will not display modally.

Would you be so kind as to share your code or steps you took to get the ModalPopupExtender to work? Thanks.

ckh