Right now I have a master page. In the master I have a script manager, a Update Panel, a Label and a timer.
Right now I am just putting the time in the label, if I get this to work I will want to do something more advance of getting a status from a database. But the concept is the same
I have tried putting the timer in the UpdatePanel with ChildernAsTriggers and outside the UpdatePanel with a TriggerCollection for AsyncPostback.
Both ways cause the Content portion of the page to reload time and time again. I was under the impression that only the functions in the UpdateTrigger collection get invoked. Is it normal for this to happen, am I setting up the Panel incorrectly?
Thanks
Right now I am just putting the time in the label, if I get this to work I will want to do something more advance of getting a status from a database. But the concept is the same
I have tried putting the timer in the UpdatePanel with ChildernAsTriggers and outside the UpdatePanel with a TriggerCollection for AsyncPostback.
Both ways cause the Content portion of the page to reload time and time again. I was under the impression that only the functions in the UpdateTrigger collection get invoked. Is it normal for this to happen, am I setting up the Panel incorrectly?
Code:
<asp:ScriptManager ID="smDynamicClock" runat="server"></asp:ScriptManager>
<asp:Timer ID="Timer1" runat="server" Interval="5000" ontick="Timer1_Tick">
</asp:Timer>
Code:
<asp:UpdatePanel runat="server" ID="upDynamicClock" ChildrenAsTriggers="False"
RenderMode="Inline" UpdateMode="Conditional">
<ContentTemplate>
<asp:Label runat="server" ID="lblDynamicClock"></asp:Label>
</ContentTemplate>
<Triggers>
<asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
</Triggers>
</asp:UpdatePanel>
Thanks