Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 6055411
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 23, 20262026-05-23T08:15:43+00:00 2026-05-23T08:15:43+00:00

Is it possible to load menu Url’s and attributes from a database? I am

  • 0

Is it possible to load menu Url’s and attributes from a database?

I am building a site that will incorporate dynamic news sections and it would be great to include new news items into the menu without having to re-edit the menu.

I am using Access and ASP.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-23T08:15:44+00:00Added an answer on May 23, 2026 at 8:15 am

    I’ve currently finished an ASP – SQL2000 driven menu. I run it off one table and one query.

    The table will need at the minimum: –

    ID (INT)
    
    label (char or varchar - the text that appears on the page)
    sub (BIT or Boolean - if true then it has submenus)
    level (the parent link - for submenus only)
    link (char or varchar - what happens when you click!)
    seq (INT - to order the menus and submenus)
    

    The SQL or Query for the root menu items: –

    SELECT [id],label,[level],sub,link FROM TOC where level=0 order by seq
    

    Then: –

    SELECT [id],label,[level],sub, [link] FROM TOC WHERE [level]<>0 order by [level],seq
    

    For the submenus..

    Finally the ASP (oMenuRoot is the recordset for the ROOT menus, oMenuSub is the recordset for the SUB menus: –

    <%do until oMenuRoot.eof%>
    ,"<%=oMenuRoot("label")%>","<%
    if oMenuRoot("sub") then
    response.write "show-menu=" & oMenuRoot("id")
    else
    response.write Application("homePage") & "?" & oMenuRoot("link")
    end if
    %>",,"",1<%=vbcrlf%>
    <%intRoots=intRoots+1
    oMenuRoot.movenext
    loop
    
    do until oMenuSub.eof
    if intOldTree<>oMenuSub("level") then
    blnNewTree=true
    response.write "])" & vbcrlf
    else
    blnNewTree=false
    end if
    if blnNewTree then
    response.write "addmenu(menu=["""
    response.write oMenuSub("level")
    response.write """," & vbcrlf
    response.write ",,120,1,"""",style1,,""left"",effect,,,,,,,,,,,," & vbcrlf
    end if
    response.write ",""" & oMenuSub("label") & ""","""
    if oMenuSub("sub") then
    response.write "show-menu=" & oMenuSub("id")
    else
    response.write Application("homePage") & "?" & oMenuSub("link")
    end if
    response.write """,,,1" & vbcrlf
    intOldTree=oMenuSub("level")
    oMenuSub.movenext
    loop
    response.write "])" & vbcrlf
    %>
    

    This is draft working model, but works without problems, you could improve by using one SQL query and writing all the output inside ASP markup.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Is it possible to load a URL in a WebView and resize it to
Is it possible to load new lines from a text file to variables in
I was wondering if it was possible to load a asp.net control (.ascx) that
Is this possible? I have 4 pages that load dynamically with PHP/AJAX when corresponding
I have a Clickonce application that is launched from the start menu (local). I
Is it possible to load a picture from memory ( byte[] or stream or
Is it possible to create a multi-tab application that has a tab that will
I am building a custom navigation menu in Magento which displays the categories from
Is it possible to load child entities in a single query without using DataLoadOptions?
Is it possible to load different LocalSettings.php in MediaWiki based on login.

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.