Google Groups no longer supports new Usenet posts or subscriptions. Historical content remains viewable.
Dismiss

Dynamic Tabstrip Problem!

0 views
Skip to first unread message

Rachael

unread,
May 2, 2002, 7:25:21 PM5/2/02
to
I've installed the IE Webcontrols and am trying to
dynamically create a tabstrip control by adding tab
elements at runtime.

using Microsoft.Web.UI.WebControls;
using msTabStrip = Microsoft.Web.UI.WebControls.TabStrip;
using msTab = Microsoft.Web.UI.WebControls.Tab;
using msTabSeparator =
Microsoft.Web.UI.WebControls.TabSeparator;

private void CreateTopLevelTabStrip()
{
msTabStrip _topLevelTabStrip = new msTabStrip();
msTab tab1 = new msTab();
msTab tab2 = new msTab();

tab1.Text = "Tab 1";
tab2.Text = "Tab 2";

_topLevelTabStrip.Controls.Add(tab1);
_topLevelTabStrip.Controls.Add(tab1);

}

I've been successful at creating the other controls from
this namespace dynamically and only have probs with the
TabStrip control. I've also been successful creating the
tabstrip right in the .aspx page with tags. But, when I
try to add a tab to it with this syntax, it is looking for
a: System.Web.UI.Control or a derivative thereof. Even
though I've fully qualified the object type using
aliases???????

Does anyone else have this problem and have they any
insight as to the problem? Help is greatly appreciated.

Thanks,
Rachael

0 new messages