更新时间:2023-09-16 23:01:22
你是更新更新面板条件。
请指定UpdateMode =条件
。
确保使用脚本管理器。
您的整个代码将如下所示。< asp:ScriptManager ID = ScriptManager1 runat = server / >
< asp:UpdatePanel pan> ID = up4 UpdateMode = 条件 runat = server >
< ContentTemplate >
........
< / ContentTemplate >
< / asp:UpdatePanel > 跨度>
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:
<asp:UpdatePanel ID="up4" runat="server">
<ContentTemplate>
........
</ContentTemplate>
</asp:UpdatePanel>
And in the button click event, I wrote this:
up4.ChildrenAsTriggers = false;
up4.UpdateMode = UpdatePanelUpdateMode.Conditional;
up4.Update();
you are updating update panel conditional.
Please specifyUpdateMode="Conditional"
.
Make sure that you have use script manager.
You whole code will look like this.<asp:ScriptManager ID="ScriptManager1" runat="server" /> <asp:UpdatePanel ID="up4" UpdateMode="Conditional" runat="server"> <ContentTemplate> ........ </ContentTemplate> </asp:UpdatePanel>