Hi,
I have a DetailsView on my web page and I'd like to use the automatically generated INSERT statement found in the advanced settings of my DataSource configuration.
I'm wondering where I should write my code to handle exceptions such as Primary Key Violation, etc...
So far I've only been able to find a place to handle exceptions if I write my INSERT statement manually. However, I'd like to avoid doing so.
Is there a way of using the automatically generated INSERT and handling exceptions? If so, where?
Thanks in advance for any feedback.