views:

20

answers:

1

I have two user controls. One is having a ModalPopupExtender which I need to show on a click of hyperlink button which is other user control.

Is it possible? Can I anyhow call a modal popup extender's Show() method from other user control?

+1  A: 

Got it solved!

AjaxControlToolkit.ModalPopupExtender mpe = ((AjaxControlToolkit.ModalPopupExtender)(Page.Master.FindControl("usercontrol1").FindControl("ModalPopupExtenderLoginStatus")));
                if (mpe != null)
                {
                    mpe.Show();
                }
Manish