I'm trying to figure out a way to load a section of my page dynamically with MVC. Currently I have a top menu, and side menu to the left that are shared layout. The main content is within the id "page-content-wrapper". The code looks as follows:
@{
ViewBag.Title = "Role";
Layout = "~/Views/Shared/_Layout.cshtml";
}
<div id="wrapper">
@*Sidebar*@
@Html.Partial("_Sidebar")
@*PAGE CONTENT*@
<div id="page-content-wrapper">
<div>content</div>
</div>@*page-content-wrapper*@
</div>@*wrapper End*@
In the page-content-wrapper section I'd like to switch between views, but not reload the entire page. Would AJAX panels be a good option? Or are there any online tutorials to assist me? Any options that will allow my page to run efficiently are welcomed.
Thanks for any help.