Create A Simple Dynamic Clock by Using UpdatePanel of ASP.NET AJAX
If you are developing web applications for different customer scenarios in which timestamping matters, there is a chance that you will be asked to put a real-time dynamic clock on the page depending on your real estate limitations on the UI. Any search result would give you several remedies to this purpose, but I wanted to have something short, neat and cross-browser compatible.
First, create the UpdatePanel as in the following sample form:
OnLoad event of upDynamicClock will be handled in the server side:
I have tested the outcome with the latest versions of IE and Firefox, and it worked fine with both of them:
Sample code for this post can be found here.