Quantcast
Channel: ASP.NET AJAX + Ajax Control Toolkit (ACT)
Viewing all articles
Browse latest Browse all 5678

Why Update Panel With Timer in Master Page Refreshing Content(Child) Pages?

$
0
0

I've the controls below in master page. But after timer interval the entire contents on content page are being reloaded. Specially images and my watermark text. Can anyone help plz to fix this issue?


In .Master File

<asp:Timer ID="Timer1" OnTick="Timer1_Tick" runat="server" Interval="5000" />
<asp:UpdatePanel ID="UpdatePanel1" UpdateMode="Conditional" runat="server" ChildrenAsTriggers="False" >
    <Triggers>
       <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
    </Triggers>
<ContentTemplate>
   <asp:Label ID="lbl1" runat="server" Text=""></asp:Label>
</ContentTemplate>
</asp:UpdatePanel>

.CS File

protected void Timer1_Tick(object sender, EventArgs e)
{
lbl1.Text = DateTime.Now.ToLongTimeString();

}


Viewing all articles
Browse latest Browse all 5678

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>