protected void Timer1_Tick(object sender, EventArgs e) { Convert.ToDateTime(System.DateTime.Now.ToShortTimeString()).Subtract(Convert.ToDateTime(ViewState["StartTime"]) ); + " minutes of 60"; if (LblTimer.Text.ToString() == "01:30:00") { // do nothing Btnback.Visible = false; BtnNext.Text = "Finished"; updateCandidateTestHistory(); } else { DateTime dt = Convert.ToDateTime(ViewState["ElapsedTime"]); dt = dt.AddMinutes(30); ViewState["ElapsedTime"] = dt; } string dt1; dt1 = dt.TimeOfDay.ToString(); LblTimer.Text = dt1.ToString(); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)