ASP.NET Window - Knowledge Base

Back to Knowledge Base list

How to redirect to other page on close of a dialog control?

Q:

How to redirect to other page on close of a dialog control?

A:

The "OnClientClose" property can be used to accomplish this. For example:

    <owd:Dialog OnClientClose="close_handle()" ID="myDialog" ...>
        ...
   
</owd:Dialog>
    ....
    <script type="text/javascript">
        function close_handle()
        {
            window.location = "Default.aspx";
        }
    </script>

"Brilliant work ;-)"

Kay Muehlena