Author: saedabaid | Posted on: 6/15/2010 4:42:20 AM | Views : 270

Hi all
i need to bind the menu dynamically,i put the menu in the UserControl and i pass to it QueryString["menuid"]
for example if i put in hyperlink
http://localhost:50740/Ecommerce/Default2.aspx?menuid=1
bind all the submenus based on the menuid=1
i got the error when i did this
HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable. Description: An unhandled exception occurred during the execution of the current web request. Please review the stack trace for more information about the error and where it originated in the code.

Exception Details: System.InvalidOperationException: HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource ...

Go to the complete details ...