auto refresh of div in mvc3 ASP.Net not working
Posted
by
user1493249
on Stack Overflow
See other posts from Stack Overflow
or by user1493249
Published on 2012-06-30T21:12:28Z
Indexed on
2012/06/30
21:15 UTC
Read the original article
Hit count: 201
asp.net-mvc
ViewData.cshtml(Partial View)
Date Bill Amount PayNow
</tr> </thead> <tbody> @{ for (int i = @Model.bill.Count - 1; i >= 0; i--) { <tr> <td width="30%" align="center">@Model.billdate[i]</td> <td width="30%" align="center">@Model.bill[i]</td> <td width="30%" align="center"> <a class="isDone" href="#" data-tododb-itemid="@Model.bill[i]">Paynow</a> </td> </tr> } } </tbody>
Index.cshtml(View)
$(document).ready(function () { window.setInterval(function () { var url = '@Url.Action("SomeScreen", "Home")'; $('#dynamictabs').load(url) }, 9000); $.ajaxSetup({ cache: false }); }); @Html.Partial("ViewData")
HomeController.cs(Controller)
public ActionResult Index() { fieldProcessor fp= new fieldProcessor(); return View(fp); } public ActionResult ShowScreen() { return View("ViewData",fp); }
Still the same is not working..
© Stack Overflow or respective owner