开发者

asp.net - Show popup from popup window

In my asp.net application, one of the web page has a small popup(say PopUp1) containing a hyperlink. Now when user clicks this link, I need to open another popup(say PopUp2) but in Parent Window that hosts the origional PopUp1. Also, FYI, the PopUp2 that I want to show is currently a user control which I have declared in PopUp1.

If I call below script from PopUp1,

PopUp2.cs

    public void ShowEmailPreviewPopup()
    {            
        ScriptManager.RegisterStartupScript(ct开发者_如何学PythonlEmailPreviewUpdatePanel,
                            ctlEmailPreviewUpdatePanel.GetType(),
                            "ShowEmailPreviewPopup",
                            "EmailPreviewPopup.Show();",
                            true);
        ctlEmailPreviewUpdatePanel.Update();
    }

it displays the user control in PopUp1 window, which I don't want. How can I modify the script so that it opens PopUp2 in parent window of PopUp1?

Or any other ideas?

Thank you!


Have you tried setting a different window name for popup 2 so the first popup window isn't reused? FYI popups are usually a bad idea (blockers and such) - If you can I'd change the code to use a DHTML dialog such as the jQuery UI dialog http://jqueryui.com/demos/dialog/

0

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜