470,827 Members | 1,724 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,827 developers. It's quick & easy.

binding a menu control with a dataset

hi,

is there a way to bind a menu control with a dataset without get this
error?

System.InvalidOperationException: HierarchicalDataBoundControl only
accepts data sources that implement IHierarchicalDataSource or
IHierarchicalEnumerable.

I've tryed this , but it doesn't render correctly and write the menu
with some extra elements

Dim x As New XmlDataSource
x.DataFile = Master.serverMapPath + "app_data/level2Menu.xml"

Menu1.DataSource = x
Menu1.DataBind()

Apr 10 '06 #1
0 1114

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

4 posts views Thread by bardo | last post: by
2 posts views Thread by Andrew Robinson | last post: by
2 posts views Thread by Rodney Lane | last post: by
reply views Thread by Tumurbaatar S. | last post: by
4 posts views Thread by Brad Baker | last post: by
1 post views Thread by Brad Isaacs | last post: by
1 post views Thread by GS | last post: by
reply views Thread by mihailmihai484 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.