471,089 Members | 1,577 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,089 software developers and data experts.

Filter Treeview using XmlDatasource.xpath

Hi,
I have this xmldoc linked to a xmldatasource in .Net 2.0

<MENUROOT title="Home" visible="true">
<MENU title="subnode_1" visible="true">
<MENUITEM title="leafnode_1" visible="true" />
<MENUITEM title="leafnode_2" visible="false" />
</MENU>
<MENU title="subnode_2" visible="false">
<MENUITEM title="leafnode_3" visible="true" />
<MENUITEM title="leafnode_4" visible="true" />
</MENU>
</MENUROOT>

The xmlDatasource is linked to a treeview control in an asp.net page.
I need to filter the xmldatasource only to show the items tha have the
attribute set to true.

If subnode_2 is set to false then then the leafnode_3 and 4 must not be
shown even if these nodes are set to true.

Anyone have any ideas about this.

Thanks alot!

/espen
Apr 10 '06 #1
0 2202

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

2 posts views Thread by Ryo | last post: by
reply views Thread by Jan Limpens | last post: by
1 post views Thread by Disccooker | last post: by
3 posts views Thread by =?Utf-8?B?TGVzbGll?= | last post: by
2 posts views Thread by rote | last post: by
2 posts views Thread by Polaris | last post: by

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.