Click here to Skip to main content
16,021,285 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
hi,

When postback occurs , ajax modal popup was disappear in my page?

how to resolve this without using update panel and reopen the modal popup in prerender event when postback occurs?
Posted
Comments
Sunasara Imdadhusen 21-Dec-11 2:27am    
Please provide snippet of code!
K Herms 21-Dec-11 4:18am    
This probably occurs because the modalpopupextender is inside a updatepanel. When a postback returns, this code is rerendered and reinitialized. Please provide some code to see if this is true.

1 solution

We probably need to see your code to understand the exact problem, but from what you said it sounds like you need to set the update panel inside your modal popup to have
UpdateMode="Conditional"

Then add a trigger to the update panel:
XML
<Triggers>
    <asp:AsyncPostBackTrigger 
        ControlID="ddlPopLiveDB" 
        EventName="SelectedIndexChanged" />
</Triggers>

Hope this helps
 
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