I am developing a website using ASP.NET MVC 3.
I have a number of sections containing news from different departments, as shown in the image below:
http://i.stack.imgur.com/G21qi.png
Sections are added to the home page using
@Html.Action("_News", "Home", new { id = 1 })
Where id 1 = "Ledelsen", 2 = "Omstillingen", etc.
My controller contains the following action:
[ChildActionOnly]
public ActionResult _News(int id)
{
return PartialView();
}
I have CRUD running, but my question is, how can I update PartialView without postback at a given interval?
I suppose I should use Javascript / jQuery for this, but I could not.
Can someone point me in the right direction or better yet, provide an example of how to do this?
Thanks in advance
EDIT: , , , , partialviews