How to Show / Hide a ModalPopupExtender using Javascript
If we have a ModalPopupExtender with the id ‘modPopup_ModalPopupExtender’, and need to display or hide it in javascript, we can easily do this using the $find() function.
Let’s see this in action:
ASPX:
Javascript:
The code is pretty self explanatory. Hope that helps.