473,395 Members | 1,527 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,395 software developers and data experts.

Dynamic menu (like explorer with folders and subfolders)

Hello!

I have a MSSQL 2003 database that stores the menu structure (categories) for
my webpage.

The category table consist of categoryID, category Name and parentID
(parentID is the ID of the category over the one you are in...). This way
there is no limit for how many levels the menu structure can be.

My question is:
How can I make a ASP code (VB script) that will display this menu dynamic
regardless numbers of category levels? With 2 levels (menu and submenu) I
would have one recordset that displays the topmenu, and inside this
recordset I would have another recordset that displays the submenu (where
tblCat.categoryID = tblSubCat.parendID). But this code will have the limit
of 2 levels; topmenu and submenu. I dont know how many levels I need, thats
why I need a code that has no limits...

I want to make i "Windows explorer" kind om meny...
Thanks for all tips!!!!
Regards,
Øyvind Isaksen
Jul 22 '05 #1
1 1497
Here's a good starting point with samples and links.

http://www.aspfaq.com/show.asp?id=2311

Ray at work

"Øyvind Isaksen" <oy****@sorenso.no> wrote in message
news:%2****************@TK2MSFTNGP14.phx.gbl...
Hello!

I have a MSSQL 2003 database that stores the menu structure (categories) for my webpage.

The category table consist of categoryID, category Name and parentID
(parentID is the ID of the category over the one you are in...). This way
there is no limit for how many levels the menu structure can be.

My question is:
How can I make a ASP code (VB script) that will display this menu dynamic
regardless numbers of category levels? With 2 levels (menu and submenu) I
would have one recordset that displays the topmenu, and inside this
recordset I would have another recordset that displays the submenu (where
tblCat.categoryID = tblSubCat.parendID). But this code will have the limit
of 2 levels; topmenu and submenu. I dont know how many levels I need, thats why I need a code that has no limits...

I want to make i "Windows explorer" kind om meny...
Thanks for all tips!!!!
Regards,
Øyvind Isaksen

Jul 22 '05 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Radharadya dasa | last post by:
hari, i need to make an explorer like menu witch i could controll by keyboard. i mean to go up and down with arrows, open subfolders and close, etc. how could i strat? rrd
21
by: AES/newspost | last post by:
My understanding -- I'm not an expert -- is that on (some? many? all?) standard Internet servers a URL can point to a subdirectory name followed by a backslash, and that links to this URL will...
0
by: mm | last post by:
Can someone with Win 2K please help me here. Best yet, can some MVP duplicate it and report it to MS. I can't find any reference to this issue on the Web, or in MS Knowledge Base. I have been...
4
by: spx27 | last post by:
Does anyone know the best way to handle passing a dynamic menu generated from a login from one asp.net page to another. Would it be better to recreate the menu on each page? Save the menu as a...
0
by: Lesley | last post by:
How can I invoke the standard Windows Shell Context menu for a file or folder from vb.net? I have a treeview with nodes in it representing files and folders, as in windows explorer and when I...
1
by: Øyvind Isaksen | last post by:
I try to find som information about creating folders (and subfolders) on the webserver using asp.net (1.0). I have made a filuploader, and all files are now saved in the same folder on the...
2
by: begum | last post by:
Hi everybody; It's me again :). We have folders and that folders has another folders. We want toread all te text files in that folders. We can only reach main folder and second subfolder.How...
0
by: philaphan80 | last post by:
I'm hoping someone can offer some guidance regarding a concept I have. I'm trying to perform the following within Windows Explorer: 1. Add an entry to the context menu which should be executed...
2
by: bkendra5 | last post by:
I have a folder called "Policies" this folder contains several subfolders, inside the subfolders are the policies in PDF format. I am trying to build a single "Policies" page to display all the...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.