Click here to Skip to main content
15,892,161 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
I am using an update panel in a modal popupextender where I need to reload the update panel after a button click event.

But I am unable to do it.
Please help!

Below is the thing I used:

XML
<asp:UpdatePanel ID="up4" runat="server">
 <ContentTemplate>
   ........
 </ContentTemplate>
</asp:UpdatePanel>

And in the button click event, I wrote this:
SQL
up4.ChildrenAsTriggers = false;
up4.UpdateMode = UpdatePanelUpdateMode.Conditional;
up4.Update();
Posted
Updated 19-May-13 23:16pm
v4

1 solution

you are updating update panel conditional.
Please specify UpdateMode="Conditional".
Make sure that you have use script manager.
You whole code will look like this.
XML
<asp:ScriptManager ID="ScriptManager1" runat="server" />
<asp:UpdatePanel ID="up4" UpdateMode="Conditional" runat="server">
 <ContentTemplate>
   ........
 </ContentTemplate>
</asp:UpdatePanel>
 
Share this answer
 
v2
Comments
Charan_Kumar 20-May-13 5:48am    
i had used every possible thing but didnt works....
Amey K Bhatkar 27-May-13 2:11am    
you code look fine. Can you elaborate you requirement unable to understand the problem domain. What is there in contenttemplate that is not working?

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

  Print Answers RSS
Top Experts
Last 24hrsThis month


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