Click here to Skip to main content
14,732,828 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
i am trying to show the two different messages by using timer in a function like first show one message and after few seconds show 2nd one.

What I have tried:

msg = "Your Email Is already Verified!";
                      DateTime endRunAt = DateTime.Now.AddSeconds(10);
                      if (DateTime.Now > endRunAt)
                          return RedirectToAction("Home", "Home");

but this code is not working perfectly....
F-ES Sitecore 22-Oct-20 4:41am
You'll have to do this with client-side javascript. Google for "window.setTimeout" to see how to set client-side timers. You'll have to show the message using javascript too.
BillWoodruff 22-Oct-20 6:59am
Your code does not show anything being shown.

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900