G
Guest
I am creating a "setup" page that allows users to fill out various tables of
key,value pairs that are basically the table for foreign keys within a master
table. It all works very well, but when a user tries to delete a record that
is currently being used in the master table the SQLServer obviously won't let
you because of the contraint on hte foreign key and ASP.net throws and
exception. What is the best way to catch this exception, perhaps in the
deleting event of the gridview control that i am using for editing/deleting
data in the table.
key,value pairs that are basically the table for foreign keys within a master
table. It all works very well, but when a user tries to delete a record that
is currently being used in the master table the SQLServer obviously won't let
you because of the contraint on hte foreign key and ASP.net throws and
exception. What is the best way to catch this exception, perhaps in the
deleting event of the gridview control that i am using for editing/deleting
data in the table.