Can I call a modal popup extender's (which is in one user control) 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 use开发者_运维知识库r 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();
}
精彩评论