You must repair code because you can't return partialview with json type and .... The best way that i suggest you, before send question searched in google website that how to implement this task.
The following link help you to understand how to implement this work:
https://www.google.com/search?q=reload+partial+in+mvc&ie=utf-8&oe=utf-8
also you can see the example of how to ' Auto Refresh Partial View in ASP.NET MVC ' in the following link:
https://www.mindstick.com/Articles/1132/auto-refresh-partial-view-in-asp-dot-net-mvc
Example:
So, say you have your View with PartialView, which have to be updated by button click:
<div class="target">
@{ Html.RenderAction("UpdatePoints");}
</div>
<input class="button" value="update" />
There are some ways to do it. For example you may use jQuery:
<script type="text/javascript">
$(function(){
$('.button')click(function(){
$.post('@Url.Action("PostActionToUpdatePoints", "Home")').always(function(){
$('.traget').Load('/Home/UpdatePoints');
})
});
});
</script>
PostActionToUpdatePoints is your Action with [HttpPost] attribute, which you use to update points
If you use logic in your action UpdatePoints() to update points, maybe you forgot to add [HttpPost] attribute to it:
[HttpPost]
public ActionResult UpdatePoints()
{
ViewBag.points = _Repository.Points;
return PartialView("UpdatePoints");
}
I hope this help you.
Reference:
Updating PartialView mvc 4