Wrox Programmer Forums
|
ASP.NET 2.0 Professional If you are an experienced ASP.NET programmer, this is the forum for your 2.0 questions. Please also see the Visual Web Developer 2005 forum.
Welcome to the p2p.wrox.com Forums.

You are currently viewing the ASP.NET 2.0 Professional section of the Wrox Programmer to Programmer discussions. This is a community of software programmers and website developers including Wrox book authors and readers. New member registration was closed in 2019. New posts were shut off and the site was archived into this static format as of October 1, 2020. If you require technical support for a Wrox book please contact http://hub.wiley.com
 
Old March 17th, 2006, 09:27 PM
Registered User
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default dynamic menus off odbc database

Hi, im really rusty in webdesign i havent touched in in a very long time ive been programming for years,

i have 2 dynamic menus
basicly
1 for car manufacture
and 1 more for modle of car

its really easy maybe cuz its the morning but, say when some one chooses Ford from the manufacture menu i want the modle menu to auto populate with all of the modles within the DB

my db is righten like
ford Focas | GT | Mustang | Topaz
Dodge RAM | Truck | BLAH | YEA

so i geuss the problem is. how do you take horizontal cells and make them fit into a dynamic menu once it has filted by the manufacture menu selection follow?

runing odbc server no sql

either i need to find a way to auto populate the values that are horizontal in the database. or i need to find a way to filter coulom names within access. im using dreamweaver mx 4

hahaha maybe i need a coffee or somthing but i think i need some help one this one any help would be greatly appreicated im up all day on MSN muckluks@hotmail.com thanks


 
Old March 18th, 2006, 12:55 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

I would first consider chaging your table design. You should have a table of Makes, a table of models and a table that links the makes to models.

 
Old March 19th, 2006, 01:59 AM
Registered User
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

do you mean the link as a releation ship in MS access between the two tables?

 
Old March 19th, 2006, 04:02 PM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Yes, I mean relationships.

 
Old March 20th, 2006, 08:30 PM
Registered User
 
Join Date: Mar 2006
Posts: 7
Thanks: 0
Thanked 0 Times in 0 Posts
Default

well if i were to make relationships with the dataase still all of the values are going to be horizontal, i need them to come up verticle in the dynamic menu on dreamweaver..

give me an example how to make the table just a small example

 
Old March 21st, 2006, 12:33 AM
Friend of Wrox
 
Join Date: Nov 2003
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Makes
MakeID(PK) Make (MakeID Identity Column)
1 Chevy
2 Ford
3 Dodge

Models
ModelID(PK) Model (ModelID Identity Column)
1 Mustang
2 Topaz
3 Ram
4 Truck
5 Monte Carlo
MakesModels
MakeID(FK) ModelID(FK) (MakeID,ModelID Primary Key Clustered)
2 1
2 2
3 3
4 4
1 5


Select ma.Make, mo.Model
From Makes ma
Inner Join MakesModels mm ON ma.MakeID = mm.MakeID
Inner Join Models mo on mm.ModelID = mo.ModelID

Jim





Similar Threads
Thread Thread Starter Forum Replies Last Post
Dynamic menus and content? gabster XSLT 6 October 16th, 2007 10:05 AM
Dynamic Menus - Using multiple dropdown boxes Sebastiaan ASP.NET 1.0 and 1.1 Basics 1 April 18th, 2007 06:25 AM
Code Announcement: Ch3, Dynamic Drop Down Menus richard.york BOOK: CSS Instant Results 0 November 14th, 2006 10:57 AM
populate Menus from Database harrysingh26 ASP.NET 2.0 Professional 0 February 21st, 2006 02:39 AM
Dynamic Link Menus richard.york Javascript 8 July 7th, 2004 05:23 PM





Powered by vBulletin®
Copyright ©2000 - 2020, Jelsoft Enterprises Ltd.
Copyright (c) 2020 John Wiley & Sons, Inc.