Use this code to close the model popup from asp.net codebehind
ModalPopupExtender1.Hide();
or from javascript use
var mpop = $find('ModalPopupExtender1'); mpop.hide();
to update any update panel with updatemode="conditional" use
UpdatePanel1.Update();
in code behind