How to resize ModalPopupExtender?

after showing ModalPopupExtender, there are two radio buttons that are displayed as part of the popup. When you select the second radio button, I show more information in the gridview control. When ModalPopupExtender is first displayed, I have it set to 40% for the width and height for the panel associated with the popup. After clicking the second radio button, I would like to resize the popup to 80% in width and height. My question is, how do you resize the ModalPopupExtender after its initial popup?

+2


a source to share


1 answer


Use Javascript, something like this



d = document.getElementById('<%= PupupContainer.ClientID>');
d.style.width="80%";

      

+1


a source







All Articles