Search code examples
javascriptjqueryasp.netshowmodaldialog

how to postback parent page after modal dialog is closed


I am showing my modaldialog like that:

<script>
    function fnOpen() {
        window.showModalDialog("CopyPasteWizard.aspx", "", "dialogHeight: 500px; dialogWidth: 800px; resizable: off; scroll:off;")
    };
</script>

In my parent page I call that js function and my dialog opens. I need that when dialog closed, dialog caller parent page should be postback.

how can I do that?


Solution

  • In your dialog close event, try the following:-

    location.reload();