Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

AsyncPostBackTrigger with UpdatePanel

Status
Not open for further replies.

slatetm

Programmer
Mar 20, 2007
16
0
0
US
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>
<my:DetSearch ID="DetSearch1" runat="server" />
</ContentTemplate>
<Triggers>
<ajax:AsyncPostBackTrigger ControlID="button" />
</Triggers>
</ajax:UpdatePanel>

<ajax:UpdatePanel ID="UpdatePanel5" runat="server" UpdateMode="Conditional">
<ContentTemplate>
<my:DetComp 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();
}
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top