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 MaruwadaRank #3,483 · 416 reputationPosted Jan 30, 2018, 10:55 PM EST
Jes SieRank #1,285 · 1.3K reputationPosted Jan 30, 2018, 11:04 PM EST
Srikant MaruwadaRank #3,483 · 416 reputationPosted Jan 30, 2018, 11:21 PM EST
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts