Wrox Programmer Forums

Need to download code?

View our list of code downloads.

Go Back   Wrox Programmer Forums > ASP.NET and ASP > ASP.NET 2.0 > ASP.NET 2.0 Professional
Password Reminder
Register
| FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read
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 tens of thousands of software programmers and website developers including Wrox book authors and readers. As a guest, you can read any forum posting. By joining today you can post your own programming questions, respond to other developers’ questions, and eliminate the ads that are displayed to guests. Registration is fast, simple and absolutely free .
DRM-free e-books 300x50
 
 
Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old March 17th, 2006, 09:27 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
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


  #2 (permalink)  
Old March 18th, 2006, 12:55 AM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
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.

  #3 (permalink)  
Old March 19th, 2006, 01:59 AM
Registered User
 
Join Date: Mar 2006
Location: , , .
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?

  #4 (permalink)  
Old March 19th, 2006, 04:02 PM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
Posts: 1,348
Thanks: 0
Thanked 5 Times in 5 Posts
Default

Yes, I mean relationships.

  #5 (permalink)  
Old March 20th, 2006, 08:30 PM
Registered User
 
Join Date: Mar 2006
Location: , , .
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

  #6 (permalink)  
Old March 21st, 2006, 12:33 AM
Friend of Wrox
Points: 4,332, Level: 27
Points: 4,332, Level: 27 Points: 4,332, Level: 27 Points: 4,332, Level: 27
Activity: 0%
Activity: 0% Activity: 0% Activity: 0%
 
Join Date: Nov 2003
Location: , NJ, USA.
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
 


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


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



All times are GMT -4. The time now is 03:58 PM.


Powered by vBulletin®
Copyright ©2000 - 2019, Jelsoft Enterprises Ltd.
© 2013 John Wiley & Sons, Inc.