I need help with this..
I have a viewdata with a list of clients and i feed it when the Index action method is called.
/* Index action is the method that open the view. */
Once that the Index method was called, the variable is feeded and view is showed.
Then, i have a dialog where is render a partialView, wich have a table with the list of clients.
<div id="popupClients" class="popUp" style= "display:none">
<% Html.RenderPartial("ClientsPartialView", ViewData["clients"]); %>
/* popupClients is the dialog. */
/* ClientsPartialView is a partialView with a table that show id and name of clients. */
The cuestion is how i can refresh the data of the viewdata before being displayed?
I ask this because, if someone insert a new client, has to be displayed in the partialView
Thnxs!