Rest the MS AJAX TimerControl’s countdown.


Are you using a MS AJAX timer control to auto refresh content on your page but want to reset the timer when a user action forces a refresh.

In your server side code you can reset the timer by adding two lines like this:

Protected Sub ButtonResetTimer_Click(ByVal sender As Object, ByVal e As System.EventArgs)
TimerControl1.Enabled = False
TimerControl1.Enabled = False
End Sub


Comments (0)