ASP .NET AJAX Timer Demonstration by James Pate Williams, Jr. BA, BS, MSwE, PhD

Sometimes in a web application you want to time the user’s input. Suppose you have a one textbox web form and you want to set an inactivity timer of 1200 seconds which is equal to 20 minutes. Every time the user adds or modifies the textbox the timer is reset to 0. The following pictures tell the story of my implementation of such a server-side timer in ASP .NET using an AJAX timer object.

Microsoft Edge 10_13_2018 4_29_27 PMMicrosoft Edge 10_13_2018 4_29_48 PMMicrosoft Edge 10_13_2018 4_30_22 PMMicrosoft Edge 10_13_2018 4_31_27 PMMicrosoft Edge 10_13_2018 4_31_44 PMMicrosoft Edge 10_13_2018 4_51_20 PMMicrosoft Edge 10_13_2018 4_52_03 PMMicrosoft Edge 10_13_2018 4_52_25 PMMicrosoft Edge 10_13_2018 4_57_43 PM

AJAX Timer Demonstration Source Code