Click here to Skip to main content
15,917,061 members
Please Sign up or sign in to vote.
1.00/5 (1 vote)
See more:
I have a page where i load a dynamic panel in ajax modelpopup extender and after doing some db action needs to close modelpopup and refresh update panel.

I tried window.location.reload().But that is doing a whole page reload.I want to close modelpopup and refresh a particular updatepanel.
Posted
Comments
Sunasara Imdadhusen 16-May-14 1:56am    
Please share your code

1 solution

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

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900