Quantcast
Channel: Visual Studio and Visual Web Developer Express
Viewing all articles
Browse latest Browse all 3509

Exception Handling Using Generated INSERT Statement

$
0
0

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.


Viewing all articles
Browse latest Browse all 3509

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>