We are trying to get an updatepanel to refresh when another updatepanel within the same tab refreshes. We are trying AsyncPostBackTrigger to accomplish this. The code below works when you manually click the button but does not work on the refresh. Any help is appreciated.
<ajaxToolkit:TabPanel ID="TabPanelCO" runat="server" HeaderText="Companions" TabIndex="5">
<ContentTemplate>
<asp:Button ID="button" Text="Button1" runat="server" OnClick="Button1_Click" />
<ajax:UpdatePanel ID="SearchUpdatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<myetSearch ID="DetSearch1" runat="server" />
</ContentTemplate>
<Triggers>
<ajax:AsyncPostBackTrigger ControlID="button" />
</Triggers>
</ajax:UpdatePanel>
<ajax:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<myetComp ID="DetComp1" runat="server" />
</ContentTemplate>
</ajax:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
And the code is simply:
protected void Button1_Click(object sender, EventArgs e)
{
UpdatePanel5.DataBind();
}
<ajaxToolkit:TabPanel ID="TabPanelCO" runat="server" HeaderText="Companions" TabIndex="5">
<ContentTemplate>
<asp:Button ID="button" Text="Button1" runat="server" OnClick="Button1_Click" />
<ajax:UpdatePanel ID="SearchUpdatePanel" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<myetSearch ID="DetSearch1" runat="server" />
</ContentTemplate>
<Triggers>
<ajax:AsyncPostBackTrigger ControlID="button" />
</Triggers>
</ajax:UpdatePanel>
<ajax:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<myetComp ID="DetComp1" runat="server" />
</ContentTemplate>
</ajax:UpdatePanel>
</ContentTemplate>
</ajaxToolkit:TabPanel>
And the code is simply:
protected void Button1_Click(object sender, EventArgs e)
{
UpdatePanel5.DataBind();
}