Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
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.
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
is working on a reply...
Write your reply to:
Upload image
Image will be uploaded when post is submitted
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.
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
is working on a reply...