473,396 Members | 1,933 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,396 software developers and data experts.

building menu with loops on asp?

347 100+
I am building a menu that gets info from my DB and want ti to list in 2 columns, i can get this to work with the following code but it fils when there is only 1 catagory in DB

Expand|Select|Wrap|Line Numbers
  1. <div id="artistnav">
  2.  
  3. <% Do until (sectionsRecordset.EOF) %>
  4.  
  5. <span class="navlabel <%= sectionsRecordset("sectionstxt") %>label"><img src="http://bytes.com/submit/images/artistnav/<%= sectionsRecordset("sectionstxt") %>.png" width="150px" height="150px">
  6.  <span class="texttotop">
  7.  
  8.  <% Do until (vtypeRecordset.EOF) %>
  9.  
  10.  <% if vtypeRecordset("type") = sectionsRecordset("celebstypes") then %>
  11. <a href="boys2.asp?id=<% Response.Write (actorid) %>&voicetype=<%=vtypeRecordset("celebstypes")%>" style="text-transform:capitalize"><%=vtypeRecordset("voicetypetxt")%></a>&nbsp;&nbsp;
  12.  
  13. <% vtypeRecordset.MoveNext %>
  14.  
  15. <a href="boys2.asp?id=<% Response.Write (actorid) %>&voicetype=<%=vtypeRecordset("celebstypes")%>" style="text-transform:capitalize"><%=vtypeRecordset("voicetypetxt")%></a><BR>
  16.           <% else %>
  17.  
  18.           <% end if %>
  19.           <% vtypeRecordset.MoveNext %>
  20.  
  21.           <% Loop %>
  22.           </span></span>
  23.  
  24.           <% vtypeRecordset.MoveFirst %>
  25.  
  26.  
  27.  <% sectionsRecordset.MoveNext %>
  28.   <% Loop %> 
  29.   <a href="boys2.asp?id=<% Response.Write (actorid) %>&voicetype=All"  class="navlabel mainlabel"><img src="http://bytes.com/submit/images/artistnav/main.png" width="150px" height="150px"></a>
  30.   </div>
page can be seen here

http://www.yaketyyakallmouth.com/flu...&voicetype=All

just need to figure out how to loop through 2 recordsets with another loop i think!!!

any help would be appreciated
Aug 9 '13 #1
0 944

Sign in to post your reply or Sign up for a free account.

Similar topics

8
by: Afkamm | last post by:
I can't get my head around them. I have two MySQL tables, one contains the categories, the other contains the posts. Each post is linked to a category. Now I'm trying to display each post with...
4
by: JesusFreak | last post by:
From: us_traveller@yahoo.com (JesusFreak) Newsgroups: microsoft.public.scripting.jscript Subject: toolbar script problem NNTP-Posting-Host: 192.92.126.136 Recently, I downloaded the following...
1
by: ajay | last post by:
I have following code for a slide menu but i twiked it to work for a single level menu. Open it in a Browser to get a clear picture. I have 2 Qs 1) How to make first entry as non-link. i.e i...
2
by: RWD | last post by:
I am trying to figure out how to change the target frame in my hyperlink on a DHTML menu. The menu is in one frame and the target frame is called "main" The code is below: Thanks in advance...
4
by: Yuk Cheng | last post by:
<<<start index.htm>>> <html> <head> <script> function perform(action){ } </script> </head>
7
by: brian | last post by:
I am looking at purchasing or creating a dynamic navigational menu system that would be binded to SQL server 2000 data. The users id is stored in the SQL server and based on the id is what the...
2
by: Tim::.. | last post by:
Hi can someone please tell me how I dynamically create a menu like the one shown below from a database. I want to create a loop that loops through all the records in a table and builds a table...
4
by: hkarthik | last post by:
hi all, My name is karthik. I am doing a project in ASP.NET with MySQL as backend. I am just a beginner in .net. Can you please help me in building a menu in ASP.NET. When i enquired,...
3
by: bdbeames | last post by:
I have a menu on the right side of my page and a flash object in the center. When a certain option in the menu is select a sub menu pops and floats left. The problem is, depending on the browser...
6
by: nullgraph | last post by:
Hi everyone, I'm new to Python and the notion of lambda, and I'm trying to write a function that would have a varying number of nested for loops depending on parameter n. This just smells like a...
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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
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.