The ASP.NET AJAX ModalPopupExtender has OnCancelScript and OnOkScript properties, but it doesn\'t seem to have an OnShowScri
OnCancelScript
OnOkScript
OnShowScri
You should use the BehaviorID value mpeBID of your ModalPopupExtender.
mpeBID
function pageLoad() { $find('mpeBID').add_shown(HideMediaPlayer); } function HideMediaPlayer() { var divMovie = $get('<%=divMovie.ClientID%>'); divMovie.style.display = "none"; }