473,395 Members | 2,006 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,395 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 2032
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: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.