Archive

Archive for November 5th, 2009

Javascript call to close ModalPopupExtender

November 5th, 2009

The AJAX.Net ModalPopupExtender comes with the property ‘CancelControlID’, but what if you want to add multiple cancel controls, or trigger the Modal Popup to close based upon an event?

Simple, you can use the following javascript to fire the close event manually.

$find('ModalPopupExtender_Full_Control_ID').hide();

There, I said it was simple didn’t I?

Techie , , ,