473,322 Members | 1,736 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 software developers and data experts.

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

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)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #1
3 2026
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

"Patrick Olurotimi Ige" <ig*@iprimus.com.au> wrote in message
news:Ok**************@TK2MSFTNGP10.phx.gbl...
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)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #2
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

"Patrick Olurotimi Ige" <ig*@iprimus.com.au> wrote in message
news:Ok**************@TK2MSFTNGP10.phx.gbl...
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)
*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!

Nov 19 '05 #3
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?

*** Sent via Developersdex http://www.developersdex.com ***
Don't just participate in USENET...get rewarded for it!
Nov 19 '05 #4

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

10
by: Alphonse Giambrone | last post by:
I have a web form with 2 user controls on it (UC1 and UC2). Each control has a bound datagrid with textboxes in the footer to add a new row. There are also requiredfieldvalidators in each footer....
2
by: Christian H | last post by:
Based on the content in my database, I need to populate different form controls and validators, such as textbox, dropdownlist, requiredfieldvalidators , etc. Then I need to check if the form has...
8
by: Donald Xie | last post by:
Hi, I noticed an interesting effect when working with controls that are dynamically loaded. For instance, on a web form with a PlaceHolder control named ImageHolder, I dynamically add an image...
4
by: John Holmes | last post by:
I'm using data to rename some web controls on a form that uses a repeater contol and so it can have mulitple instances of the same control set. The controls get renamed (thanks to Steven Cheng's...
1
by: Mike | last post by:
Hi, I am adding controls dynamically in a WebForm and would like to handle some of their events. Here is the code to set up the dynamic controls: System.Web.UI.WebControls.TableRow row = new...
10
by: Sacha Korell | last post by:
I'm trying to load a drop-down list with all DropDownList control names from another page. How would I be able to find those DropDownList controls? The FindControl method will only find a...
0
by: Patrick Olurotimi Ige | last post by:
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...
3
by: Ankit Aneja | last post by:
I have a strange situation and I have no idea how to solve this. Its a Recruitment Search Page,in the Admin Page, for every button click event the Admin Person has to create a checkbox on the users...
3
by: tanya foster | last post by:
Hello, I am re-writing a visual basic .net application(visual studio 2003) in an asp.net application(visual studio 2005). The vb.net application relied on a treeview and hence, treenodes. The...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.