---
title: "Two timers in one page"  
description: "Two timers in one page"  
author: "Anonymous User"  
published: 2013-12-16  
updated: 2013-12-16  
canonical: https://www.mindstick.com/forum/1779/two-timers-in-one-page  
category: "asp.net"  
tags: ["asp.net"]  
reading_time: 1 minute  

---

# Two timers in one page

I have two timers in [one page](https://www.mindstick.com/forum/118/problem-in-display-content-of-one-page-to-another-page) but [second](https://answers.mindstick.com/qa/41761/how-did-the-second-industrial-revolution-influence-women-s-roles-in-society) [timer](https://www.mindstick.com/articles/52/creating-timer-at-runtime-in-c-sharp-dot-net) is not working.

```
<asp:Timer ID="Timer1" runat="server" Interval="1000" OnTick="Timer1_Tick"></asp:Timer><asp:Timer ID="Timer2" runat="server" Interval="5000" OnTick="Timer2_Tick"></asp:Timer>Code behind:protected void Timer1_Tick(object sender, EventArgs e){   
lblcurrenttime5.Text = DateTime.Now.ToLongTimeString();}       protected void Timer2_Tick(object sender, EventArgs e){    label6.Text ="Timer 2 is working";} 
```

## Replies

### Reply by Pravesh Singh

Hi Samuel,\

Try putting the code you want in the pageLoad method

```
 protected void Page_Load(object sender, EventArgs e)    {     
lblcurrenttime5.Text = DateTime.Now.ToLongTimeString();      label6.Text ="Timer 2 is working";    }
```

Since the [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page) refreshes with the timer, it will pass through the pageload method.


---

Original Source: https://www.mindstick.com/forum/1779/two-timers-in-one-page

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
