Capture PK violation in Details View

R

randy.buchholz

I'm trying to catch a database error (PK Violation) from a "plain vanilla"
DetailsView.

I have tried try/catch in both the Inserting and Inserted events of the
DetailsView and DataSource. Also, tried converting the insert link to a
template field and wrapping the xx.Insert() in a try/catch. Going crazy!
please help.
 
R

randy.buchholz

After hours of screwing with it I figure it out right after I post, of
course :)
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,769
Messages
2,569,576
Members
45,054
Latest member
LucyCarper

Latest Threads

Top