Digital clock
how can make a digital clock in c# with ajax
2 Answers
Know the answer? Post it. Somebody with the same question will find it here.
Know the answer? Post it. Somebody with the same question will find it here.
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questions
DevSocialUpcoming · 3rd editionAI Agents ConferenceDec 1–3, 2026Live onlineFree to attend5days leftRegister
Devinder KumarRank #3,035 · 475 reputationPosted Jan 13, 2014, 8:29 PM EST
You can use this code to show digital clock in asp.net c# like this....
On design page use this one...
On code file put this one...........
Abhay ShankerRank #375 · 6.7K reputationPosted Jan 13, 2014, 9:13 PM EST
OnTick="Timer1_Tick"
Interval="1000">
runat="server">
________________________________________
Code Behind
protected void Timer1_Tick(object sender, EventArgs e)
{
lblTimer.Text = DateTime.Now.ToLongTimeString();
}