I want to create an application with a parent view where there is several tabs, and inside each tab there is CRUD operations for a specific table of the database. So i used jquery ui to create the tabs in my parent view, and made a partial view "Index" for each table and render them like this:
<div id="tabs-1">
@{Html.RenderAction("Index", "companies");}
</div>
<div id="tabs-2">
@{Html.RenderAction("Index", "users");}
</div>
For CRUD operations, i created partial view for each operation that i render inside the index view using Html.RenderPartial.
The problem is that only the Index view is displayed inside the tab, if you click on one of the CRUD (create new company for example) it redirects you to another url (to company/create for example).
so what is the proper way to render them inside the same tab? Is there a better approach to do that? (i thaught of SPA maybe).