How to call function on timer ASP.NET MVC

前端 未结 4 859
醉话见心
醉话见心 2020-12-12 14:15

I need to call function on timer (lets say onTickTack() function) and reload some info in ASP.NET MVC project. I know that there are several ways to do that, but which one i

4条回答
  •  没有蜡笔的小新
    2020-12-12 14:28

    My solution is this way;

    
    

    Called Method;

    [HttpPost]
    public ActionResult Method()
    {
      return Json("Tick");
    }
    

提交回复
热议问题