Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Opening a ModalPopup from within a ModalPopup, programatically

$
0
0

I open my ModalPopups in code, and I need to perform a little processing before displaying them. I now need to open up another ModalPopup from within an already open ModalPopup, via a button click. When the button is clicked, the page posts back and the following code is executed (simplified for clarity):

butShowDialog1_ModalPopupExtender.Show();
butShowDialog2_ModalPopupExtender.Show();

Both ModalPopups are displayed, and the second ModalPopup is displayed on top of the first. However, the first modal is not greyed out/disabled (the user can still interact with it), so the second ModalPopup is not truly modal.

Am I doing something wrong? Am I missing a step? How can I ensure that the first ModalPopup is greyed out/disabled until control has returned to it from the top-most ModalPopup?

Thanks

Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>