Chapter 13 - Handle SqlException
Hello Imar,
in chapter 13, in the Genres GridView, I'm trying to handle the following SqlException:
The DELETE statement conflicted with the REFERENCE constraint "FK_Review_Genre".
The exception occurs if the user try to delete a Genre with at least a Review still attached.
I cannot understand where to put the try/catch because the stack trace in the Yellow Screen of Death does not show up any aspx page of the Planet Wrox site.
Can you tell me where to put the try/catch to handle this DB exception ?
Thank you
|