Till now, i have :
In .ASPX page,
And, in C# back-end code :
int counter = 60;
protected void Timer1_Tick(object sender, EventArgs e)
{
if(counter!=0)
{
counter--;
timer.Text = "00:" + counter.ToString();
}
}
Know the answer? Post it. Somebody with the same question will find it here.
Dipankar BiswasRank #992 · 2K reputationPosted Aug 4, 2014, 10:26 AM EDT
try it..
Akhil KhareRank #7,443 · 241 reputationPosted Aug 4, 2014, 3:43 AM EDT
setTimeout(function () { window.location.href = "test.html"; //will redirect to your test page (an ex: test.html) }, 60000); //will call the function after 60 secs.Dipankar BiswasRank #992 · 2K reputationPosted Aug 4, 2014, 3:55 AM EDT
and aspx.cs code:
Thanks
Dipankar Biswas
Abhishek Kumar RaviRank #251 · 10K reputationPosted Aug 4, 2014, 9:50 AM EDT
Abhishek Kumar RaviRank #251 · 10K reputationPosted Aug 4, 2014, 3:20 PM EDT
protected void Timer1_Tick(object sender, EventArgs e)
{
if(counter!=0)
{
counter--;
timer.Text = "00:" + counter.ToString();
}
else {
// Change Question & Check Your Answer
}
}
Abhishek Kumar RaviRank #251 · 10K reputationPosted Aug 4, 2014, 3:22 PM EDT
Answer a question in the forums and earn +20 SHARP for every answer.
See unanswered questionsTop experts