SIGN UP MEMBER LOGIN:    
Blog

Prevent closing of Ajax ModalPopupExtender on postback

Posted by Manish Dwivedi Blogs | AJAX in C# Nov 30, 2010
In this blog I am trying to prevent closing of Ajax ModalPopupExtender during Postback.

This is the general problem face by developer even I also suffered from this problem. In my scenario, I was using RadioButtonList inside ModalPopupExtender. what i was facing when i changed the selection of RadioButton option, it was closing the Ajax ModalPopupExtender.

So what i did to prevent closing of ModalPopupExtender.

I put the modalpopupextender inside the UpdatePanel and in RadioButtonList1_SelectedIndexChanged event I called the  ModalPopupExtender show method. like that

 protected void RadioButtonListShippingMode_SelectedIndexChanged(object sender, EventArgs e)
{
        ModalPopupExtender1.Show();
}

It really solved my problem.
share this blog :
post comment
 

Thanks Manish

This blog is very usefull for me, I was also suffering by this problem.

Posted by Purushottam Rathore Dec 01, 2010