Adding link to treeview question

  • Thread starter Patrick Olurotimi Ige
  • Start date
P

Patrick Olurotimi Ige

I have a code below that i use to populate a treeview menu from the
DB('m using the Treeview webcontrol).
I can get the ChildRows but i want to make the "nodeProd.Text =
rowProd("ProductName")" a link!
I tried doing :-
'nodeProd.Text = <a href ="">" & rowProd("ProductName") &"</a>
but no LUCK
Any ideas?



For Each rowProd In rowSupp.GetChildRows("SuppToProd")
nodeProd = New TreeNode
nodeProd.Text = rowProd("ProductName")
'nodeProd.Text = <a href ="">" & rowProd("ProductName") &"</a>
nodeProd.ID = rowProd("ProductID")
nodeSupp.Nodes.Add(nodeProd)
Next
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top