On Friday, January 10, 2003 at 16:01, Dwayne Conyers wrote:
CD> Anyway... I want to be able to build the tree using the SQL database so that
CD> a node is created for each record in the database and the code is build
CD> dynamically so that "info.asp?id=1" is generated for each record ID.
i haven't plaid around with the web controls, but i would have thought
you can do something along the lines on looping through your reader,
creating a new node and setting the properties you need and adding it to
the node collection of the treeview. make any sense??
something along the lines of:
do while dReader.Read()
dim aNode as TreeNode = new TreeNode("information")
aNode.NavigateURL = dReader.GetString("NavigateURL")
aNode.OtherProperty = "some value"
myTreeview.Nodes.Add(aNode)
loop
hth,
darren.
____ � The WDVL Discussion List from WDVL.COM � ____
To Join wdvltalk, Send An Email To: mailto:[EMAIL PROTECTED]
Send Your Posts To: [EMAIL PROTECTED]
To change subscription settings to the wdvltalk digest version:
http://wdvl.internet.com/WDVL/Forum/#sub
________________ http://www.wdvl.com _______________________
You are currently subscribed to wdvltalk as: [email protected]
To unsubscribe send a blank email to [EMAIL PROTECTED]