bind menu control with a dataset

C

cipcip

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()
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,159
Messages
2,570,883
Members
47,414
Latest member
djangoframe

Latest Threads

Top