Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > ASP .Net Building Controls > Fill Tabstrip Control dynamically with multiple treeview controls

Thread Tools

Fill Tabstrip Control dynamically with multiple treeview controls

Brian Watkins
Posts: n/a
I am trying to dyanmically add tabs to my tabstrip control and then build a
different treecontrol for each tab on my tab control.
Basically the Tabstrip control would have n number of tabs/pageviews and
each pageview would have its own treeview.
Any suggestions on how I could tweak the code below to make this whole thing
dynamic? Thanks in advance

Here is how I statically create the tabstrip with one tab and one treeview

<%@ Import Namespace="Microsoft.Web.UI.WebControls" %>
<%@ Register TagPrefix="mytab" Namespace="Microsoft.Web.UI.WebControls"
Assembly="Microsoft.Web.UI.WebControls %>
<%@ register TagPrefix="mytree" Namespace="Microsoft.Web.UI.WebControls"
Assembly ="Microsoft.Web.UI.WebControls" %>

<script runat="server" >

Sub Page_Load(sender as Object, e As EventArgs)

IF Not IsPostBack Then
Call FillTreeView()

End IF

End Sub

Sub FillTreeView()

'fill treeview code here

End Sub

<form id=f1 runat="server">

<mytab:TabStrip id="tsDocuments" runat="server" TargetID="mpHoriz">
<mytab:Tab Text="Tab1" />
<mytab:TabSeparator />
<mytab:MultiPage id="mpHoriz" runat="server">

<MYTREE:TREEVIEW ID="tvwDirectory" RUNAT="server" CHILDTYPE="Directory"
CHILDTYPE="Files, Folders"
CHILDTYPE="Files, Folders"



Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to fill TreeView in ASP.Net 2.0 ? Luqman ASP .Net 1 04-20-2007 11:44 AM
Issue with a custom TreeView derived from the TreeView control Ionutz ASP .Net Web Controls 2 10-23-2005 03:23 PM
Fill Tabstrip Control dynamically with multiple TreeView controls Brian Watkins ASP .Net Web Controls 1 11-21-2003 07:36 PM
Tabstrip control with multiple aspx pages? Burt ASP .Net Web Controls 1 09-10-2003 02:42 AM
TabStrip controls Mark Fox ASP .Net 2 08-08-2003 12:18 AM