---
title: "Refresh partial view in mvc4"  
description: "Refresh partial view in mvc4"  
author: "Anonymous User"  
published: 2012-11-16  
updated: 2012-11-17  
canonical: https://www.mindstick.com/forum/464/refresh-partial-view-in-mvc4  
category: "asp.net mvc"  
tags: ["asp.net mvc"]  
reading_time: 1 minute  

---

# Refresh partial view in mvc4

these days i'm working on a [project](https://www.mindstick.com/articles/105927/how-to-excel-at-managing-multiple-projects), based on MVC 4.\
i have to [requirement](https://yourviews.mindstick.com/view/85169/becoming-an-influencer-requirement-of-skills-and-knowledge) to [refresh](https://www.mindstick.com/forum/12865/how-to-refresh-dropdownlist-but-keep-old-selected-value-json) [partial view](https://www.mindstick.com/articles/1132/auto-refresh-partial-view-in-asp-dot-net-mvc) which use to display [data from database](https://www.mindstick.com/forum/34370/how-to-populate-google-charts-using-data-from-database-created-via-data-first-asp-dot-net-mvc) on a view. \
this partial view refresh only not whole view [page](https://www.mindstick.com/articles/13031/why-to-make-a-wikipedia-page)?\
\
thanks

## Replies

### Reply by AVADHESH PATEL

Hi Tanuj\
For refreshing [Partial](https://www.mindstick.com/blog/78/partial-class-in-dot-net) View use given line of code\
\
**Step 1. Use script for calling Action for calling partial view**\
\

```
    <script type="text/javascript">         function OpenPoupWindow{               $.post('@Url.Action("RefreshPartialView", "AdminPanel")', { 'parentid': "PassParameterValue"}, function (data) {                        $("#PartialViewContainer").html(data);                });               }</script>
```

\
Note: "OpenPoupWindow" funcation\
"RefreshPartialView" Action name\
"AdminPanel" controller name\
"PartialViewContainer" id of table or div etc, witch contain partial view for [display data](https://www.mindstick.com/forum/160249/what-is-the-role-of-the-display-data-annotation-to-display-name-for-a-model-property-in-dot-net-core), like this\
\

```
    <table id="Industry">    <tr>    <td>             @Html.Partial("ProductsManagerPartialView", Model.ProductsListItem)    </td>    </tr>        </table>
```

**\
Step 2. Action for calling partial view**\
\

```
     public ActionResult RefreshPartialView(string value)        {           return PartialView("ProductsManagerPartialView", Model.ProductsListItem);        }
```

\
**Note:** "ProductsManagerPartialView" partial view name\
"ProductsListItem" Properties name\
\
i hope this will be help full for you


---

Original Source: https://www.mindstick.com/forum/464/refresh-partial-view-in-mvc4

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
