Click here to Skip to main content
15,891,184 members
Home / Discussions / Web Development
   

Web Development

 
GeneralRe: ASP SQL Password Validation Not Working Pin
Brendan Vogt23-Jan-04 2:19
Brendan Vogt23-Jan-04 2:19 
GeneralRe: ASP SQL Password Validation Not Working Pin
Sarvesvara (BVKS) Dasa23-Jan-04 21:57
Sarvesvara (BVKS) Dasa23-Jan-04 21:57 
GeneralRe: ASP SQL Password Validation Not Working Pin
Richard Deeming18-Feb-04 2:59
mveRichard Deeming18-Feb-04 2:59 
GeneralPassing Values from One Page to Other Pin
Sukhen21-Jan-04 18:25
Sukhen21-Jan-04 18:25 
GeneralRe: Passing Values from One Page to Other Pin
alex.barylski21-Jan-04 22:29
alex.barylski21-Jan-04 22:29 
GeneralRe: Passing Values from One Page to Other Pin
Roger Wright22-Jan-04 6:03
professionalRoger Wright22-Jan-04 6:03 
GeneralProblem regarding Website structure design Pin
coolvcguy21-Jan-04 14:19
coolvcguy21-Jan-04 14:19 
GeneralRe: Problem regarding Website structure design Pin
Colin Angus Mackay22-Jan-04 12:45
Colin Angus Mackay22-Jan-04 12:45 
I'd suggest a table relationship like the following:

Category
--------
CategoryID
CategoryName
ParentCategoryID

Product
-------
ProductID
ProductName
ProductLink
CategoryID

NOTE: If a product will appear in more than one category, delete the CategoryID in Product and add

ProductCategory
---------------
ProductID
CategoryID

Category had a zero/one-to-many relationship with itself.
Category has a one-to-many (or the second option a many-to-many) relationship with Product

Top level categories do not have a parent CategoryID

As for the links within the site - I'd just go for something like:
http://www.mysite.com/category.aspx?categoryID=354

From the code you can pick up the query string and use it to look the database up quickly.

IMO the directory approach is more difficult to set up and maintain.

Does this help?

--Colin Mackay--

EuroCPian Spring 2004 Get Together[^]
"You can have everything in life you want if you will just help enough other people get what they want." --Zig Ziglar


GeneralRe: Problem regarding Website structure design Pin
coolvcguy22-Jan-04 16:29
coolvcguy22-Jan-04 16:29 
QuestionWhat parameters in IE makes my code invalid? Pin
jan larsen21-Jan-04 3:06
jan larsen21-Jan-04 3:06 
AnswerRe: What parameters in IE makes my code invalid? Pin
henningbenk23-Jan-04 2:18
professionalhenningbenk23-Jan-04 2:18 
GeneralRe: What parameters in IE makes my code invalid? Pin
jan larsen23-Jan-04 2:25
jan larsen23-Jan-04 2:25 
Generalsending byte stream to browser Pin
Abhi Lahare21-Jan-04 1:58
Abhi Lahare21-Jan-04 1:58 
GeneralRe: sending byte stream to browser Pin
l a u r e n22-Jan-04 16:37
l a u r e n22-Jan-04 16:37 
GeneralRe: sending byte stream to browser Pin
Abhi Lahare22-Jan-04 17:25
Abhi Lahare22-Jan-04 17:25 
GeneralRe: sending byte stream to browser Pin
henningbenk23-Jan-04 2:23
professionalhenningbenk23-Jan-04 2:23 
GeneralSEO Pin
alex.barylski20-Jan-04 22:15
alex.barylski20-Jan-04 22:15 
GeneralRe: SEO Pin
BrainJar27-Jan-04 12:51
BrainJar27-Jan-04 12:51 
GeneralCalling Java APIs from .Net Pin
Kiran_HR20-Jan-04 21:43
Kiran_HR20-Jan-04 21:43 
GeneralWebService and .asmx file Pin
Chris Meech20-Jan-04 5:32
Chris Meech20-Jan-04 5:32 
GeneralRe: WebService and .asmx file Pin
mthead20-Jan-04 7:30
mthead20-Jan-04 7:30 
GeneralRe: WebService and .asmx file Pin
Chris Meech20-Jan-04 8:41
Chris Meech20-Jan-04 8:41 
GeneralWindow authentication for Webservice Pin
Alistair Lacy19-Jan-04 20:50
Alistair Lacy19-Jan-04 20:50 
GeneralReading document.location.href Pin
Swinefeaster18-Jan-04 13:01
Swinefeaster18-Jan-04 13:01 
GeneralWebsite search engines Pin
Jim Crafton18-Jan-04 4:40
Jim Crafton18-Jan-04 4:40 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.