OK ... Worked around it if anyone is interested ...
<cms:BasicTabControl ID="tabMenu" runat="server" Visible="false" />
<ul class="nav nav-tabs">
<%
string _page = Request.QueryString["page"];
CMS.IO.StringWriter stringWriter = new CMS.IO.StringWriter();
using(HtmlTextWriter writer = new HtmlTextWriter(stringWriter))
{
var _active = false;
for (int i = 0; i < tabMenu.Tabs.GetLength(0); i++)
{
_active = false;
if((_page == null) && (i == 0))
{
_active = true;
}
string _thisPage = tabMenu.Tabs[i,2].Substring(tabMenu.Tabs[i,2].IndexOf("page=")+5);
if(_page == _thisPage)
{
_active = true;
}
if(_active)
{
writer.AddAttribute(HtmlTextWriterAttribute.Class, "active");
}
writer.RenderBeginTag(HtmlTextWriterTag.Li);
writer.AddAttribute(HtmlTextWriterAttribute.Href, tabMenu.Tabs[i,2]);
writer.RenderBeginTag(HtmlTextWriterTag.A);
writer.Write(tabMenu.Tabs[i,0]);
writer.RenderEndTag();
writer.RenderEndTag();
}
}
Response.Write(stringWriter.ToString());
%>
</ul>