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
95
Closing WebDialogWindow by ContentPage's Close button
posted

Hi,

I am displaying a popup window by setting ContentPane.ContentUrl property of WebDialogWindow to an .aspx page (let's say Sample.aspx). I have a close button on Sample.aspx page. I want to close the WebDialogWindow on Sample.aspx btnClose_Click() event.

 Could you help me how to close WebDialogWindow on close button click??? 

 

Thanks you in advance.

Vijay Jaiswal

 

Parents
No Data
Reply
  • 12025
    posted

    Hello Vijay,

    If you execute the following client side code when the button on your content url page is clicked, it should close your dialog window.

     function CloseButtonClick() {

    var dw = window.parent.$find("WebDialogWindow1");

    dw.hide();

    }

     

    -Taz.

Children