Click here to Skip to main content
15,891,248 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi every one

in modal popup Extender i keep one user control in that control some of the controls are post backing so modal popup extender is hiding


tell me that how to stop the AJAX :: ModalPopupExtender Hides After Postback?
Posted

Create event for user Control and call it
 
Share this answer
 
On the server events of the controls that causes postback and the ModalPopup gets hidden, place this code

C#
ModalPopupExtender1.Show();
 
Share this answer
 
Comments
kvns2608 23-Aug-12 7:02am    
sorry actually i am used user control in that server controls are there
how can i write "ModalPopupExtender1.Show();" in user control
bbirajdar 23-Aug-12 8:13am    
Even if you are using the UserControl , the events for the controls in the usercontrol are fired seperately. In these events place this code

for eg. if you have a button in user control and the event is fired in user control, use this like

protected void button1_click(object sender, EventArgs e)
{
//Your button click logic here
ModalPopupExtender.Show();
}

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