Asp.net mvc 4 ASP.NET MVC 4定时器/超时

Asp.net mvc 4 ASP.NET MVC 4定时器/超时,asp.net-mvc-4,razor,timer,timeout,Asp.net Mvc 4,Razor,Timer,Timeout,我正在创建在线测试应用程序。它在测试开始和结束时都有说明页。 现在,当用户开始测试时,它首先访问“测试说明页面”,然后单击“下一步”将开始测试。 所以,要求是当用户访问“测试说明页面”并且没有点击下一步按钮时,2分钟后,它应该自动重定向到问题页面,基本上调用DynamicContent操作。我有一个视图,其中有“测试指令”和控制器中的“下一步”按钮。我有操作,它可以显示“测试指令”或问题 [HttpPost] [ValidateAntiForgeryToken] public ActionRes

我正在创建在线测试应用程序。它在测试开始和结束时都有说明页。 现在,当用户开始测试时,它首先访问“测试说明页面”,然后单击“下一步”将开始测试。 所以,要求是当用户访问“测试说明页面”并且没有点击下一步按钮时,2分钟后,它应该自动重定向到问题页面,基本上调用DynamicContent操作。我有一个视图,其中有“测试指令”和控制器中的“下一步”按钮。我有操作,它可以显示“测试指令”或问题

[HttpPost]
[ValidateAntiForgeryToken]
public ActionResult DynamicContent(DynamicContentViewModel dynamicContentViewModel)
{
    If(Instruction not displayed)
    {
       // Display instruction
    }
    else
    {
      // call the Question action which displays question 
    }
}
我在下面试过,但不起作用

<location path="Controller/DynamicContent">
    <system.web>
      <httpRuntime  executionTimeout="5"/>
    </system.web>
</location>
如何实现这一功能?我还必须在页面上显示经过的时间。 谢谢