Actually that Element I have but it's missing while posting
<div id="PartialContainer">
@foreach (var item in Model)
{
@Html.Partial("_Employee", item);
}
</div>
Ajax Call
function GetEmp() {
$.ajax({
data: dataObject,
url: '/Employees/GetEmployees', type: "POST", dataType: "json",
contentType: 'application/json',
success: function (result) {
$("PartialContainer").html(result);
})
}
Action Method
[HttpPost]
public ActionResult GetEmployees(string sid, string cid)
{
var result = empRepo.GetEmployees(sid, cid);
return Json(result, JsonRequestBehavior.AllowGet);
}