protected void Timer1_Tick(object sender, EventArgs e) { if (TimeAllSecondes > 0) { TimeAllSecondes = TimeAllSecondes - 1; } TimeSpan time_Span = TimeSpan.FromSeconds(TimeAllSecondes); hh = time_Span.Hours; mm = time_Span.Minutes; ss = time_Span.Seconds; Label2.Text = " " + hh + ":" + mm + ":" + ss; }
protected void Button1_Click(object sender, EventArgs e) { }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { Timer1.Enabled = false; } } protected void Button1_Click(object sender, EventArgs e) { Timer1.Enabled = true; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)