Target
specifies the target window or frame in which content associated with a menu
item should be displayed when that item is clicked; possible values are _blank,
_parent, _search, _self, and _top
Methods
CollapseAll
collapses all nodes
DataBind
binds the control to its data source
ExpandAll
expands all nodes
FindNode
returns the TreeNode object located at the path spe-
cified by the string parameter
Events
SelectedNodeChanged
fires when the currently selected item changes
TreeNodeCheckChanged
fires when a checkbox changes state
TreeNodeCollapsed
fires when a node is collapsed
TreeNodeExpanded
fires when a node is expanded
TreeNodePopulate
fires when a node that has its PopulateOnDemand
property set to True is expanded
HTML Server Controls
When HTML tags are used in an ASP.NET page, theyre ignored by the server
and passed to the browser unchanged; the browser renders them as it would any
other HTML page. The simple addition of the runat="server" attribute turns
an HTML tag into an HTML control, which we can then access and alter through
our code by means of the identifier given in the controls id attribute. The fol-
lowing reference lists all the useful properties, methods, and events of ASP.NETs
HTML controls.
643
HTML Server Controls

Get Build Your Own ASP.NET 2.0 Web Site Using C# & VB, Second Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.