As an alternative tool, you can use Telerik Tabstrip and transfer the .csHtml file as a partial view. Something like that:
@{ Html.Telerik().TabStrip() .Name("TabStrip") .Items(tabstrip => { tabstrip.Add() .Text("My First tab") .Action("Index", "ControllerName") .ImageUrl("~/Content/Common/Icons/Suites/mvc.png") .Content( @Html.Partial("csHtmlName_1", (List<TypeOfYourData>)ViewData["NameOfrelatedView"]).ToString() ); tabstrip.Add() .Text("My Second Tab") .Action("secondAction", "ControllerName") .ImageUrl("~/Content/Common/Icons/Suites/sl.png") .Content(@Html.Partial("csHtmlName_2", (List<TypeOfYourDate>)ViewData["NameOfrelatedView"]).ToString() ); }) .SelectedIndex(0) .Render(); }
Please note that you need to install MVC Telerik first (it's free :) and OpenSource)
source share