I'm working on a project in which I'm using tabs as a navigation on a website. I want each tab to refer to a View.

Right now I have this in my MasterPage:

<div class="container">
         <nav>

           <ul class="nav nav-tabs">
                     <li><a href="#aaa" data-toggle="tab">För elever</a></li>
                      <li><a href="#bbb" data-toggle="tab">För skolpersonal</a></li>
                     <li><a href="#ccc" data-toggle="tab">Ungdom och elevdatabas</a></li>
             </ul>
                <div class="tab-content" id="tabs">
                      <div class="tab-pane" id="aaa">View1</div>
                     <div class="tab-pane" id="bbb">View2</div>
                     <div class="tab-pane" id="ccc">View3</div>
                </div>
                    @{ Html.RenderPartial("MainNavigation"); }

         </nav>

Is there a way to refer the way I want with Razor? I'm using Umbraco with Visual Studio

Related posts

Recent Viewed