Add control to TreeView (ASP.NET 2.0)

H

Henk

I'm trying to, but it isnt clear to me.

I have a node
dim node1 as new treenode.

and add it to te treeview.:
treeview.items.add(node1)

so i can add a textbox how?
node1.add(new textbox()) won't work!!


Alvin Bruney said:
yup, you can add controls the nodes the same way you add to a web form.
.Node = new textbox() or html by doing .Text = "<asp:dropdownlist/>"

roughly

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Moistly said:
Is it possible to add, for exampl,e a button to a node of a TreeView?

Thanks
 
H

Henk

Henk said:
I'm trying to, but it isnt clear to me.

I have a node
dim node1 as new treenode.

and add it to te treeview.:
treeview.items.add(node1)

so i can add a textbox how?
node1.add(new textbox()) won't work!!


Alvin Bruney said:
yup, you can add controls the nodes the same way you add to a web form.
.Node = new textbox() or html by doing .Text = "<asp:dropdownlist/>"

roughly

--
________________________
Warm regards,
Alvin Bruney [MVP ASP.NET]

[Shameless Author plug]
Professional VSTO.NET - Wrox/Wiley
The O.W.C. Black Book with .NET
www.lulu.com/owc, Amazon
Blog: http://www.msmvps.com/blogs/alvin
-------------------------------------------------------


Moistly said:
Is it possible to add, for exampl,e a button to a node of a TreeView?

Thanks
 

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,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top