ASPxPopupControl 显示与关闭

来源:互联网 发布:蚁群算法matlab工具箱 编辑:程序博客网 时间:2024/06/07 05:37

关闭弹出窗体close aspxpopupwindow
1.在popupwindow所在页面弹出及关闭
<asp:Button ID="btnShowPopup" runat="server" Text="ShowPopup" OnClientClick="popup.Show(); return false;" />
<dxpc:ASPxPopupControl ID="pcPopup" runat="server" ClientInstanceName="popup">
    <Controls>
        <asp:Button ID="btnClosePopup" runat="server" Text="ClosePopup" OnClientClick="popup.Hide(); return false;" />
    </Controls>
</dxpc:ASPxPopupControl>
2.在popupwindow的内容页面关闭
 window.parent.ASPxPopupControl1.Hide();
aspxPopupwindow控件使用
function(s, e) {var win=PopMain.GetWindowByName('PopWinSelectOrg');PopMain.ShowWindow(win);}