Your Privacy Matters: We use our own and third-party cookies to improve your experience on our website. By continuing to use the website we understand that you accept their use. Cookie Policy
160
ContentURL to another aspx page, how to close dialog ...
posted

I would like to develop the popup window in a separate aspx page so that all the code is self contained here, however how do I close the dialog from a OK button or Cancel button that is contained within the separate aspx page?

Currently the examples show creating the popup window all in one aspx page, so the Ok button can call a local javascript click event and call Hide on the dialog control.

Thanks ...

Parents
No Data
Reply
  • 95
    posted

     

    I think I figured out a workaround now... Its to create an iFrame inside ModalTemplate section and throw in OK CANCEL buttons under the iFrame like this:

    <igweb:WebDialogWindow ID="WebDialogWindow1" runat="server" Height="350px" Modal="True" Width="845px" WindowState="Hidden" InitialLocation="Centered" Movable="false">

    <Header CaptionText="Add New Account">
    <CloseBox Pressed="True" />
    </Header>

    <ContentPane BackColor="white">

    <Template>

    <iframe id="frameAddNew" runat="server" width="100%" src="SomePage.aspx?some=somethingelse" height="300"></iframe>
    <input id="Button1" type="button" value="Cancel" onclick="DialogAddCancel()" />

    </Template>

    </ContentPane>

    </igweb:WebDialogWindow>

    Also assuming that you have the java function available on your page etc...

    function DialogAddCancel()
    {
    oWebDialogWindow1.hide();
    }

Children