I have a partial view which is rendered like this in my main view by calling the function.
function LoadPartialView1(){ url = ROOT + "ControllerName/PartialView1_PV?Dashboard=" + Dashboard + "&department=" + department;
$.get(url, function (data) {
$('#divPartial').html(data);
}); }
In this partial view let us imagine I am getting list of Employees in a particular department. Against each employee I need to append the work details of today,So in this PartialView1_PV I am calling another partial view like this
<div>
@Html.Action("WorkDetails", "ControllerName", new { EmployeeId= item.EmployeeId})
</div>
Here I am able to get the details and display it ,but I have a timer running and it is calling the LoadPartialView1() function in each 10 seconds.In my localhost it is running fine and getting refreshed ,but when I published it in the server Iam getting error saying
System.Web.HttpException (0x80004005): Cannot redirect after HTTP headers have been sent.
I have referred to other questions like Stackoverflow qustion1, StackOverflow question2 but still no go. Any help is appreciated.