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?
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?
Got it solved!
AjaxControlToolkit.ModalPopupExtender mpe = ((AjaxControlToolkit.ModalPopupExtender)(Page.Master.FindControl("usercontrol1").FindControl("ModalPopupExtenderLoginStatus")));
if (mpe != null)
{
mpe.Show();
}