L
Laura K
Hi all,
Working in ASP.net VB
I am creating a website for a store which has many different kinds of items
from men's pants to shoes to camping tents.
Due to the number of different items I am having problems designing a
details page and deciding how to create datasets.
My MS SQL 2000 database is set up where all products are in a table with all
details except size and color.
Size and color are in various junction tables which differ according to the
type of items. For example men's pants have a jct table which includes
product ID, inseam and waist. I need the junction table because one model
of pants can have 30 different size combos. Women's pants sizes are in a
jct table that has product ID and size (women's pants and men's pants are
sized differently so they need different table designs). Tents are only in
the product table. They have no sizes.
This means that the details page has to do two things.
1. It has to select the correct tables to join (products and junction for a
specific item type) and create a dataset depending on the querystring that
is passed to the page.
2. It has to display a dropdown list if there is a size and no drop down if
there is not.
First question: where and how should I choose the product/jct table combo -
as a stored procedure? In the asp.net page? As if then statements?
How should I change the details page according to the options. Ex if no
size no size drop down appears.
I really really really need help. I can not get my head around this. I
just need a starting point.
If you made it this far thanks.
Laura K
Working in ASP.net VB
I am creating a website for a store which has many different kinds of items
from men's pants to shoes to camping tents.
Due to the number of different items I am having problems designing a
details page and deciding how to create datasets.
My MS SQL 2000 database is set up where all products are in a table with all
details except size and color.
Size and color are in various junction tables which differ according to the
type of items. For example men's pants have a jct table which includes
product ID, inseam and waist. I need the junction table because one model
of pants can have 30 different size combos. Women's pants sizes are in a
jct table that has product ID and size (women's pants and men's pants are
sized differently so they need different table designs). Tents are only in
the product table. They have no sizes.
This means that the details page has to do two things.
1. It has to select the correct tables to join (products and junction for a
specific item type) and create a dataset depending on the querystring that
is passed to the page.
2. It has to display a dropdown list if there is a size and no drop down if
there is not.
First question: where and how should I choose the product/jct table combo -
as a stored procedure? In the asp.net page? As if then statements?
How should I change the details page according to the options. Ex if no
size no size drop down appears.
I really really really need help. I can not get my head around this. I
just need a starting point.
If you made it this far thanks.
Laura K