How to develop menu dynamically from database?
-
I want to develop asp.net application which contains menu but menu items should be generated from database. My intension is that Administrator can change menu items by working only on database, no need to change front end any how. For example: Web page contains Menu as 1. Home 2. About Us 3. Contact Us So if Administrator wants can change About Us menu to Our Clients menu, so administrator only need to modify in database don't touch front end any how. Any small help also appreciated. Thanks in advance. Dilip Kumar Vishwakarma
Programmer .Net Consulting
-
I want to develop asp.net application which contains menu but menu items should be generated from database. My intension is that Administrator can change menu items by working only on database, no need to change front end any how. For example: Web page contains Menu as 1. Home 2. About Us 3. Contact Us So if Administrator wants can change About Us menu to Our Clients menu, so administrator only need to modify in database don't touch front end any how. Any small help also appreciated. Thanks in advance. Dilip Kumar Vishwakarma
Programmer .Net Consulting
I would have thought that you just do the following: create a table i.e. table_menu Insert all your menu items i.e. home, contact us etc Then in your backend code create a select statement which selects all fields from that table and loop it until all fields are displayed. Then whenever the user updates the field in the database it changes straight away in the website you could even build a front end app for them to edit the database through a simple form hope this helps