I have a page in my asp.net web forms with a timer and an update panel. My page is on a Master page.
- <asp:Content ID="Content1" ContentPlaceHolderID="MainContent" runat="server">
- <br />
- <asp:Timer ID="Timer1" runat="server"
- Interval="12000" OnTick="Timer1_Tick">
- asp:Timer>
- <asp:UpdatePanel ID="UpdatePanel1" runat="server" UpdateMode="Conditional">
- <ContentTemplate>
- <fieldset class="container">
- <legend><strong>Formal Teacher Evaluationstrong>legend>
- <div class="row">
- <div class="col-lg-2">
- <asp:Label ID="label1" runat="server">asp:Label>
- div>
- div>
- fieldset>
- ContentTemplate>
- <Triggers>
- <asp:AsyncPostBackTrigger ControlID="Timer1" EventName="Tick" />
- Triggers>
- asp:UpdatePanel>
- asp:Content>
- protected void Timer1_Tick(object sender, EventArgs e)
- {
- label1.Text = "Time updated : " + time;
- }
Thank you for any help.

Srikant MaruwadaPosted Jan 31, 2018, 4:21 AM
Jes SiePosted Jan 31, 2018, 4:04 AM
Srikant MaruwadaPosted Jan 31, 2018, 3:55 AM