Click here to Skip to main content
15,894,460 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to set dynamic menu in asp.net web applications,
Posted

 
Share this answer
 
Comments
Suresh Suthar 20-Dec-11 1:22am    
Nice Abhinav! Have my 5 just for giving your precious time to Google this very basic thing for a lazy programmer/developer who doesn't know how to Google.
Abhinav S 20-Dec-11 1:25am    
Thanks Suresh for mentioning that I used a search engine :D.
Sergey Alexandrovich Kryukov 20-Dec-11 2:09am    
Sure, a 5.
--SA
Abhinav S 20-Dec-11 2:10am    
Thanks SA.
thatraja 20-Dec-11 2:12am    
5! I think OP need database driven menu, check mine.
See this
dynamic menu
hope it helps
 
Share this answer
 
Comments
thatraja 20-Dec-11 2:12am    
5! I think OP need database driven menu, check mine.
uspatel 20-Dec-11 2:49am    
thanks raja.........
Use hierarchical structure of fields in table in sql.
MenuID , ParentMenuID, link, and Sequence.

Use self join and fetch records from table and their parent name also.
of Parent name is blank then that is main menu.

Now you can use looping for creating dynamic menu.

for menu, use dynamicdrive.com, there is multiple level menu link it gives some overview. which is static but follow my points it will do dynamic.
 
Share this answer
 
Comments
thatraja 20-Dec-11 2:13am    
You right, nice suggestion. 5!
Check mine for examples
 
Share this answer
 
Comments
Abhinav S 20-Dec-11 2:14am    
5!
uspatel 20-Dec-11 2:50am    
my 5! for database driven

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