auto refresh of div in mvc3 ASP.Net not working
- by user1493249
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..