, IMO .
, ...
ContentPlaceHolder <DIV id="wrapper">
And using Jquery ... in your main body, use this code with CSS reference classes in your objects.
So CSSClass="popupOK"in your label or control inside the modalpopupextender and CSSClass="promoVisible"in the OK or CANCEL buttons that should remove the popup.
$(document).ready(function () {
$('.popupOk').click( function(){
$('#wrapper').css('overflow', 'auto');
$('#wrapper').css('position', 'inherit');
});
if($('.promoVisible').is(':visible')){
$('#wrapper').css('overflow', 'hidden');
$('#wrapper').css('position', 'fixed');
} else{
$('#wrapper').css('overflow', 'auto');
$('#wrapper').css('position', 'inherit');
}
)}
source
share