I have a requirement for a web page where I need to open one dialog box to capture information from the page, and depending on the user data requirements, I need to open a second dialog box from the first dialog box on the page to capture more detailed information.
I have create two sample projects, one with a single modal dialog box, and one project with two modal dialog boxes, the first one to be opened from the page, and the second one to be opened from the first dialog box.
The single dialog box project works as expected, almost. The text box has a calendar extender on it, and the calendar will only work if it is defined in the aspx file before the button with the modal dialog box on it. If the modal dialog box is first, then the calendar extender does not function.
The two dialog box project does not work as expected. First, when you click on the button to open the first dialog box, the screen flashes and does not open the dialog box. When you click on the button a second time, the first dialog box opens as expected. You can click on the OK button or the Close button and it works as expected. When you click on the button to open the detail dialog box, the panel is opened not as a dialog box but as part of the underlying page. All controls on the primary page are accessible. When you close the second dialog box, the first dialog box is not displayed. The page goes back to the underlying page only.
All binaries (including the AjaxToolkit package) have been stripped out of the attached zip to to allow the size of the file to be under the 4MB maximum.
Comments: I've updated the sample project so that it meets your demands. Check NestedModalPopups.v2.zip attached.
I have create two sample projects, one with a single modal dialog box, and one project with two modal dialog boxes, the first one to be opened from the page, and the second one to be opened from the first dialog box.
The single dialog box project works as expected, almost. The text box has a calendar extender on it, and the calendar will only work if it is defined in the aspx file before the button with the modal dialog box on it. If the modal dialog box is first, then the calendar extender does not function.
The two dialog box project does not work as expected. First, when you click on the button to open the first dialog box, the screen flashes and does not open the dialog box. When you click on the button a second time, the first dialog box opens as expected. You can click on the OK button or the Close button and it works as expected. When you click on the button to open the detail dialog box, the panel is opened not as a dialog box but as part of the underlying page. All controls on the primary page are accessible. When you close the second dialog box, the first dialog box is not displayed. The page goes back to the underlying page only.
All binaries (including the AjaxToolkit package) have been stripped out of the attached zip to to allow the size of the file to be under the 4MB maximum.
Comments: I've updated the sample project so that it meets your demands. Check NestedModalPopups.v2.zip attached.