Copied to clipboard

Flag this post as spam?

This post will be reported to the moderators as potential spam to be looked at


  • Gianluca 56 posts 79 karma points
    Jul 12, 2013 @ 17:30
    Gianluca
    0

    is there any way to get the current active tab in backend?

    Hi there,

    With the following code I am able to get all "virtual tabs" :

    TabView tabView = (umbracoPage.FindControl("body")).FindControl("TabView1") as TabView;

                if (tabView == null)

                    return;

     

                var panels = tabView.GetPanels();

                foreach (TabPage  panel in panels)

                {  
    //...
         }

     

    Is there any way to find out which is the active tab?

    And to get the name/text associated with each tab?

     

    thanks in advance,

    Gianluca.

     

     

  • Jeroen Breuer 4908 posts 12265 karma points MVP 4x admin c-trib
    Jul 14, 2013 @ 21:07
    Jeroen Breuer
    0

    Sorry I don't know if there is a way to get the active tab, but I think changing the tab is done with javascript so perhaps you have to look there instead of C# to find out.

    Jeroen

Please Sign in or register to post replies

Write your reply to:

Draft