Dear all
Please help me
how to create timer count down start when button click in asp.net.
Thanks & Regards
Niranjan Poddar
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
Nishant MittalRank #692 · 3.5K reputationPosted Nov 30, 2015, 12:55 AM EST
private void timer1_Tick(object sender, EventArgs e) { label1.Text = DateTime.Now.ToString(); second = second + 1; if (second >= 10) { timer1.Stop(); MessageBox.Show("Exiting from Timer...."); } }Arham Ellah108 reputationPosted Dec 3, 2015, 8:55 PM EST
DispatcherTimer timer = new DispatcherTimer();
timer.Interval = TimeSpan.FromSeconds(1); //you can change timespan according to your choice.
timer.Start();
{