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

Timer Causing 2 UpdatePanels To Refresh

$
0
0

Very simple, I have 2 update panels on my page. Both are grabbing some basic but different search results from a database.

My second Update panel has a timer in it set to 3 seconds, just for now while developing.

Both panels are the basic drag and drop with no additional functionallity added to them and ChildrenAsTriggers="true".

The timer which is inside my update panel like so.

<asp:UpdatePanel ID="UpdatePanel2" runat="server" ChildrenAsTriggers="true"><ContentTemplate><fieldset><legend>Driver Status</legend><asp:Literal ID="driverLiteral" runat="server"></asp:Literal></fieldset><asp:Timer ID="Timer1" runat="server" Interval="3000"></asp:Timer></ContentTemplate></asp:UpdatePanel>

What I can't figure out is my Timer1 is causing both Update Panels to postback, I thought from everything I've read placing a timer within an updatepanel would make the Timer a child of the updatepanel causing only that panel to postback.

So what is the problem here?


Viewing all articles
Browse latest Browse all 5678

Trending Articles



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