the rationale is to set the internal pages as Partial View, and from the container page (Layout) bring the Map1, Map2, About, Contacts with Ajax in javascript:
View (layout, but not just):
<div id="DestinationLayoutDiv">
</div>
Javascript:
$.ajax({
url: '@Url.Action("action", "controller")',
data: { _param: param},
type: 'GET',
success: function (data) {
$('#DestinationLayoutDiv').html(data);
}
});
Controller:
[HttpGet]
public ActionResult switchMenu(string param)
{
//Your logic, switch or some and return :
return PartialView("About");
}
solved change page without post back in mvc