I have two partial views which need to be loaded when their respective tab is selected. I am unable to get the tabs to change and it always shows the same partial view. I tried to base my code on this answer https://stackoverflow.com/a/22483758/4761773
Here is my code :
<div>
<ul class="nav nav-tabs">
<li>@Html.ActionLink("Organization Users", "Index", new { allUsers = 0 }, new { id = "OrgUsers" })</li>
<li>@Html.ActionLink("All Users", "Index", new { allUsers = 1 }, new { id = "AllUsers" }) </li>
</ul>
<div class="tab-content">
<div class="tab-pane active" id="OrgUsers">
@Html.Partial("_ListUsers")
</div>
<div class="tab-pane" id="AllUsers">
@Html.Partial("_ListAllUsers")
</div>
</div>
</div>
Am I missing some thing?