Calling ASP.NET MVC Controller explicitly via AJAX

Posted by effkay on Stack Overflow See other posts from Stack Overflow or by effkay
Published on 2009-11-30T12:20:32Z Indexed on 2010/04/03 4:43 UTC
Read the original article Hit count: 572

Filed under:
|
|
|

I know that I can use following piece of code to refresh a div:

<%=Ajax.ActionLink( "Update", "Administration", new AjaxOptions { UpdateTargetId = "grid", LoadingElementId = "grid-wait" } ) %>

But this creates a link; user will have to click on it to get the view refreshed.

How can I make it automatic, i.e., like say if I want the grid to be refreshed after every five seconds?

© Stack Overflow or respective owner

Related posts about ASP.NET

Related posts about asp.net-mvc