Hi all,
I use new asp.net Ajax V1.
I would like to put on my page two Timer Control.
But When my UpdatePanel1 is updated, my second part is emptied. Then my updatePanel2 is updated my first part is emptied
<div id=result_box dir=ltr>Have an idea to prevent that my updatePanel is emptied ?</div>In my page aspx
<asp:ScriptManager runat="server" ID="ScriptManager1" EnablePartialRendering="true" ></asp:ScriptManager>
<asp:Timer runat="server" Interval="20000" ID="TimerControl1" OnTick="tickerTimer1_Tick" />
<asp:UpdatePanel runat="server" ID="UpdatePanel1" RenderMode="Block" >
<Triggers>
<asp:PostBackTrigger ControlID="TimerControlMessage"/>
</Triggers>
<ContentTemplate>
my firt part : label
</ContentTemplate>
</asp:UpdatePanel>
<asp:Timer runat="server" Interval="30000" ID="TimerControl2" OnTick="tickerTimer2_Tick" />
<asp:UpdatePanel runat="server" ID="UpdatePanel2" UpdateMode="Always" RenderMode="Inline" >
<Triggers>
<asp:AsyncPostBackTrigger ControlID="TimerControl2" EventName="Tick" />
</Triggers>
<ContentTemplate>
my second part : gridview
</ContentTemplate>
</asp:UpdatePanel>
In my code behind C#
protected void tickerTimer1_Tick(object sender, EventArgs e)
{
//update only my firt part
}
protected void tickerTimer2_Tick(object sender, EventArgs e)
{
//update only my second part (only my gridview)
}
Thank you for your help.
Cheers.