'Controls' is not a member of 'Microsoft.Web.UI.WebControls.TreeNode'

  • Thread starter Patrick Olurotimi Ige
  • Start date
P

Patrick Olurotimi Ige

When compiling this VB code below i get error:-
'Controls' is not a member of 'Microsoft.Web.UI.WebControls.TreeNode'
Any ideas what i'm doing wrong..if i use Controls in C# it works!!


Dim lnk As HyperLink = New HyperLink
lnk.NavigateUrl = rowProd("ProductName")
lnk.Text = ("ProductName")
Error here ----> nodeProd.Controls.Add(lnk)
 
E

Eliyahu Goldin

The message is pretty clear. Class Microsoft.Web.UI.WebControls.TreeNode
doesn't include a member called Controls. And MSDN Library has a note

"Microsoft Internet Explorer WebControls are not currently supported."

on every screen related to Microsoft.Web.UI.WebControls. How can you expect
it to work properly?

Eliyahu
 
P

Patrick Olurotimi Ige

Eliyahu,
Yes i know the error is clear!
But my question is it doesn't work for me in VB but in C# it doesn't.
How should i specify :- nodeProd.Controls.Add(lnk)
in VB?
 

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

No members online now.

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,042
Latest member
icassiem

Latest Threads

Top