Last post Feb 11, 2014 11:33 AM by nvielbig
Feb 11, 2014 09:15 AM|nvielbig|LINK
I have unique constraints on my table, and if the user tries to insert into the table duplicate data, i'd like to append any error text generated by Oracle to my label
<asp:Label id="lblError" runat="server"></asp:Label>
surely this is a simple thing to do... sorry
Feb 11, 2014 10:03 AM|PatriceSc|LINK
http://social.msdn.microsoft.com/Forums/fr-FR/906fe087-4879-4b36-bc07-9187d1a31610/catching-the-oracle-constraint-exception-in-cnet?forum=adodotnetdataproviders to see how to caught Oracle db exceptions using try/catch blocks.
Still, my personal preference is to check for this myself before the exception happens.
Feb 11, 2014 11:33 AM|nvielbig|LINK
cheers Patrice - thanks for your insight