How to insert multiple items into database
I have followed the LINQ example to:
1. Create a page to add new album title to album table
2. Create a page to insert name, description and image to photo table.
3. Create a page with a listview to show name and image for each item in photo table.
Im trying to create a website to allow people to buy items of clothing. I used the LINQ example to allow me to create a page that lists images. The website should allow people to click on an indivuidal image (which takes them to a new page showing the item name and image) to then allow the user to select a size and colour.
I want to expand the photos table to include the sizes and colours available for a particular item. Therefore in step 2 above, when a new item is added to the database I want to include the colours and sizes available. Is there a way I can add multiple items to a database such as checkboxes or a multibox? Do you know of a good example to follow on the internet?
|