Nest controls in a MS Treeview Web Control

Nest controls in a MS Treeview Web Control

Post by Chad » Fri, 19 Dec 2003 02:56:51


I want to nest a grid within a MS Treeview ASP Web Control.

It seems that I cannot add controls to a nodes Controls collection, however,
I can put HTMLText in the Node.Text property of a Node object.

The problem is, how can I get the Html text associated with any normal Web
Control? I see it has a Render method, but it seems that that will only
render the object without ever exposing the underlying HTml text to you, but
I need to place this Html Text into the Node.Text property.

In other words, I think I am looking for an GetHtmlText method on all Web
Controls.

Any suggestions?
 
 
 

Nest controls in a MS Treeview Web Control

Post by Natty Gu » Sat, 20 Dec 2003 02:00:35

Hi,

Why do you need that function? every web control eventually render to
plain HTML so way not to use plain HTML. pay attention that you need to
use HTML encode befor setting the tree node text.

Natty Gur[MVP]

blog : http://www.yqcomputer.com/
Mobile: +972-(0)58-888377


*** Sent via Developersdex http://www.yqcomputer.com/ ***
Don't just participate in USENET...get rewarded for it!