Hi
How to list collection binded asp.net menu control like DNF site
for ex: Home,articles etc
My Code this here then my list have more records then i bind my asp:menu control
i meet error which i have given below. any one guide how to
assign list menus assign asp:menu control
List<Menus> lstMenus;
<asp:Menu id=mnuid
mnuid.DataSource = lstMenus;
mnuid.DataBind();
This is error
An exception of type 'System.InvalidOperationException' occurred in System.Web.dll but was not handled in user code
Additional information: HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable.
Mark as Answer if its helpful to you
Kumaraspcode2009@gmail.com