I'm trying to update my web page's time every 3 seconds. this is how how i'm trying to do it:
[OutputCache(Duration = 3)]
public ActionResult Index()
{
ViewBag.Message = "Time : " + DateTime.Now;
return View();
}
but it does't refresh the page. Can someone please give me an idea how to solve this. thank you in advance!