开发者

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();
                }
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜