【问题标题】:How to open another Popup window within a popup window?如何在弹出窗口中打开另一个弹出窗口?
【发布时间】:2015-01-09 18:08:20
【问题描述】:

我正在打开一个弹出窗口,我想从现有的弹出窗口中打开另一个弹出窗口。但是当我点击图片按钮时,什么也没有发生。

 protected void ViewImageButton_Click(object sender, ImageClickEventArgs e)
    {
            ImageButton ViewTicketImageBtn = sender as ImageButton;
            GridViewRow GridViewRow = (GridViewRow)ViewTicketImageBtn.NamingContainer;
            try
            {
                //some code here
                this.ClientScript.RegisterClientScriptBlock(this.GetType(), "clientScript", "<script type=\"text/javascript\">viewTicketDetails();</script>");

            }
    }

这是我在 Site.Master 中的代码。对于 viewTicketDetails()

    var win;
    function viewTicketDetails() {
        win = window.open('ViewTicketDetailsPage.aspx'
                                , 'TicketDetails'
                                , 'width=1040, height=600, innerHeight=600, location=no, menubar=no, status=no, titlebar=no, scrollbars=yes, left=0'
                                , '_blank');
        win.focus();
    };

【问题讨论】:

    标签: c# asp.net


    【解决方案1】:

    您可能认为嵌套模式窗口不是一个好主意。通常,模态窗口会给用户带来不好的体验。

    也许值得考虑一些替代方案。

    请查看有关 SOstack exchangeUXthis blog 的一些建议 - 不是我的 ;)

    希望对你有帮助。

    【讨论】:

      猜你喜欢
      • 2012-12-12
      • 1970-01-01
      • 1970-01-01
      • 2015-04-10
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2011-02-16
      相关资源
      最近更新 更多