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
285
Closing WebDialogWindow by clicking a button inside content page
posted

Hi,

I am adding a WebDialogWindow to my page in code behind:

WebDialogWindow webDialogWindow = new WebDialogWindow();
webDialogWindow.ContentPane.ContentUrl = "DialogPage.aspx";           
webDialogWindow.Modal = true;
webDialogWindow.Header.MinimizeBox.Visible = false;
webDialogWindow.Header.CloseBox.Visible = false;
webDialogWindow.ID = "myDialogWindow";
webDialogWindow.WindowState = DialogWindowState.Normal;
webDialogWindow.Width = new Unit(400, UnitType.Pixel);
webDialogWindow.Height = new Unit(300, UnitType.Pixel);
 webDialogWindow.Resizer.Enabled = true;
dialogWindowPlaceHolder.Controls.Add(webDialogWindow);

Inside the page DialogPage.aspx I have a ASP.NET Button. Is it possible to close the dialog when I click this button?

 

Parents
No Data
Reply Children
No Data