Tuesday, July 08, 2008

Don't Show The Root Element When Binding an XmlDataSource to an ASP.Net Treeview Control

I was trying to find the cure for an XML problem today. When binding an XMLDataSource to an ASP.Net Treeview, I didn't want the stupid root node to show. After slogging through way too many Google results, I found Hide Root Node of XML Bound TreeView (ASP.NET). Exactly what I needed. So easy a caveman could do it. If you want to do any of the following, this will do the trick:


  • Don't show the root element of an XML document used as a data source ( XMLDataSource ) of an ASP.Net Treeview control

  • Hide the first node of a data bound XML document using XPath

  • Yes, I know these are various ways of saying the same thing--just trying to catch most of the keywords most people are likely to use, so they can hopefully find the answer more quickly than I did.

1 comments:

Beatnik said...

Pffft! and you call yourself a programmer? There are kids being born now who know that.

Post a Comment