Fill Tabstrip Control dynamically with multiple treeview controls

Posted: 11-20-2003, 07:09 PM
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

<html>
<head>
<body>
<form id=f1 runat="server">

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

<mytab:PageView>
<table>
<tr>
<td>
<MYTREE:TREEVIEW ID="tvwDirectory" RUNAT="server" CHILDTYPE="Directory"
<MYTREE:TREENODETYPE
TYPE="Directory"
CHILDTYPE="Files, Folders"
/>
<MYTREE:TREENODETYPE
TYPE="Folders"
CHILDTYPE="Files, Folders"
/>
<MYTREE:TREENODETYPE
TYPE="Files"
/>
</MYTREE:TREEVIEW>
</td>
</tr>
</table>
</mytab:PageView>

</mytab:MultiPage>

</FORM>
</body>
</html>





Reply With Quote

Responses to "Fill Tabstrip Control dynamically with multiple treeview controls"

 
LinkBack Thread Tools Search this Thread Display Modes
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
dynamically adding user controls Dune ASP.NET Building Controls 6 10-03-2003 03:53 AM
dynamically add controls and validators - always false Teemu Keiski ASP.NET Building Controls 4 07-23-2003 08:09 AM
Need Help Passing SelectedIndex (Int32) to IE Tabstrip Control Robert V. Hanson ASP.NET General 2 07-01-2003 04:18 PM
Accessing TreeView Control properties on the client side Soumitra Bajpai ASP.NET General 1 06-26-2003 11:29 AM
Positioning Dynamically added controls Harry ASP.NET General 1 06-25-2003 06:08 AM