Monday, 30 May 2016

Auto Refresh Web Page for Every 5 sec In ASP.NET MVC 5

View Code:

<head>
    <title></title>
    <meta http-equiv="refresh" content="5" />
</head>

Controller Code:

public ActionResult Index()
{
    Response.AddHeader("Refresh", "5");
    return View();
}

No comments:

Post a Comment