Click here to Skip to main content
15,896,912 members
Please Sign up or sign in to vote.
1.00/5 (2 votes)
See more:
hi sir,

i want to show items into menucontrol by getting data from database.
i was created stored procedure and i want to bind company names in menu control.
in stored procedure i have one table in that i am selecting company names by using company id. in my table contain 9 company names.

i want to show like this...
ibm
infosys
tcs
techmahindra
.
.
.........like this all company names will be dispalyed in menu items....
i was tried like this....
<asp:menu id="menucomp" runat="server">
<items>




i have binded in .cs file like
menucomp.datasource=fldjlfj.fdfjdjfl();
menucomp.databin();

it giving exception hierachical....something error



please give me answer as early as possible

thanking you.
Posted
Comments
[no name] 9-Oct-14 12:22pm    
If you cannot be bothered to show us the actual code demonstrating your error and the actual error message (hint: it's not "hierachical....something error"), why should anyone bother trying to answer you?

1 solution

If you get the following error:

HierarchicalDataBoundControl only accepts data sources that implement IHierarchicalDataSource or IHierarchicalEnumerable.

then follow the steps in :

http://forums.asp.net/t/1308798.aspx?Menu+problems+HierarchicalDataBoundControl+error[^]
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900