I have a partial page of text generated from a database that will display in a partial view. I have an Edit link that shows up if the user has rights. I want to click Edit and then replace the current partial page in the
<div> current partial page </div>
With a different partial view.
I was looking here MVC with Razor: how to refresh partial page on click?
That is about refreshing - I want to replace. Can someone provide some assistance as to what I need to do in order to replace, after the edit I want to restore back to the original division with the updated data.
EDIT
I have this MVC action link in my code @Html.ActionLink("Edit", "Edit", new { id = item.Id }) and I am using MVC .. as some have pointed out in answers - it looks like javascript is required in order to do the work on the client side.
Golda's answer seems to point me in the right direction .. and I will try to implement that and see how it works out. Although I am curious how you get inline preview with editing at the same time - like in this text box the preview data is being filled in as I type. and I would like to know how this is done.