Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. How to develop menu dynamically from database?

How to develop menu dynamically from database?

Scheduled Pinned Locked Moved ASP.NET
tutorialcsharpasp-netdatabasecom
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • D Offline
    D Offline
    dilipv 0
    wrote on last edited by
    #1

    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

    E 1 Reply Last reply
    0
    • D dilipv 0

      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

      E Offline
      E Offline
      eyeseetee
      wrote on last edited by
      #2

      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

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups