Click here to Skip to main content
15,902,939 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I have built an application in Asp.net(C#) which will generate accordion menu dynamically with the values from Sql Server database.The problem here is i have hard-coded 3-levels of nested "for" loop for 3-levels of iteration in the menu.If the menu has n-levels of iteration it is very hard to write n-levels of nested "for" loop manually So I need an optimized code which can iterate n-levels of sub-menus.If u have any idea please help me..
Posted
Comments
[no name] 1-Dec-11 0:29am    
Please share us your code and we will modify if for you.
Balakrishnan Dhinakaran 1-Dec-11 0:38am    
Thank you Eduard Lu. please open this link to see my code with complete explanation.

http://www.codeproject.com/Questions/292493/nested-accordion-in-asp-net-with-values-from-Sql-s

1 solution

 
Share this answer
 
Comments
Balakrishnan Dhinakaran 1-Dec-11 2:21am    
Thank you Tushar_Patil..I refered the link but the problem is Insted of my for loop iteration they have used xml iteration both are limited to 3 sub-levels

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