Try it.
$(document).ready(function () { var url = "@(Html.Raw(Url.Action("ActionName", "ControllerName")))"; $("#PartialViewDivId").load(url); setInterval(function () { var url = "@(Html.Raw(Url.Action("ActionName", "ControllerName")))"; $("#PartialViewDivId").load(url); }, 30000);
It makes the initial call to load the div, and then subsequent calls have an interval of 30 seconds.
In the controller section, you can update the object and transfer the object to a partial view.
public class ControllerName: Controller { public ActionResult ActionName() { . .
source share