I have an Timer
on my webpage and for testing I filled its onTick
event with an Respose.Redirect
.
<asp:UpdatePanel runat="server">
<ContentTemplate>
<asp:Timer ID="tiUpdater" runat="server" OnTick="GetTime" Interval="1000" />
</ContentTemplate>
</asp:UpdatePanel>
protected void GetTime(object sender, EventArgs e)
{
Response.Redirect("~");
}
I discovered that if I have my page open in a second tab, both pages refresh each second but after I click in one tab any button, the timer on the second page stops refreshing.
Do you have an explanation for this behaviour?