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

.



Relevant Pages

  • binding a menu control with a dataset
    ... is there a way to bind a menu control with a dataset without get this ... System.InvalidOperationException: HierarchicalDataBoundControl only ... accepts data sources that implement IHierarchicalDataSource or ...
    (microsoft.public.dotnet.general)
  • bind menu control with an xml dataset
    ... is there a way to bind a menu control with a dataset without get this ... System.InvalidOperationException: HierarchicalDataBoundControl only ... accepts data sources that implement IHierarchicalDataSource or ...
    (microsoft.public.dotnet.xml)
  • Re: bind menu control with an xml dataset
    ... Your code shows ASP.NET 2.0 databinding to an XmlDataSource, ... presents itself as a "tabular" data store. ... control wants a "hierarchical" data store. ...
    (microsoft.public.dotnet.xml)