Hello,
I made a database (http://users.skynet.be/fc042048/Pizza.jpg) in Access
which I want to use via typed datasets on my website. Problem is, if I i.e.
want to edit the datatable "Pizza" in a gridview, I get the error "Can't
delete or update the record because there are related records in the
datatable "PizzaOnderdelen" (means Pizza Ingredients).
What do I have to do to automatically update the related tables ? Do I need to adjust my dataset file (contains only the table 'Pizza" a.t.m.) or do I have to make changes in my VB code ?
(Here's the source code: Solution
(http://users.skynet.be/fc042048/Pizza (solution).rar) and Aspx files
(http://users.skynet.be/fc042048/Pizza (aspx files).rar))
Short description:
1) Project Pizza
- Beheerdersmodule.aspx: This page is used by the administrator to update, insert or delete datatables.
2) Classlibrary DbManager: Dll file which contains the dataset,classes and methods for the Pizza table:
- PizzaDbManager: Used to make the connection with the database.
- PizzaDTO: Class describing a pizza object.
- PizzaSet.xsd: the dataset
- PizzasManager: contains the methods to update, insert or delete the Pizza datatable.
Bauhaus.
I made a database (http://users.skynet.be/fc042048/Pizza.jpg) in Access
which I want to use via typed datasets on my website. Problem is, if I i.e.
want to edit the datatable "Pizza" in a gridview, I get the error "Can't
delete or update the record because there are related records in the
datatable "PizzaOnderdelen" (means Pizza Ingredients).
What do I have to do to automatically update the related tables ? Do I need to adjust my dataset file (contains only the table 'Pizza" a.t.m.) or do I have to make changes in my VB code ?
(Here's the source code: Solution
(http://users.skynet.be/fc042048/Pizza (solution).rar) and Aspx files
(http://users.skynet.be/fc042048/Pizza (aspx files).rar))
Short description:
1) Project Pizza
- Beheerdersmodule.aspx: This page is used by the administrator to update, insert or delete datatables.
2) Classlibrary DbManager: Dll file which contains the dataset,classes and methods for the Pizza table:
- PizzaDbManager: Used to make the connection with the database.
- PizzaDTO: Class describing a pizza object.
- PizzaSet.xsd: the dataset
- PizzasManager: contains the methods to update, insert or delete the Pizza datatable.
Bauhaus.