try <br /> {<br /> <br /> /// do your insert here<br /> <br /> }<br /> catch (Exception ex)<br /> {<br /> // set the friendly error here:<br /> lbError.Text = " ... no duplicates";<br /> return;<br /> <br /> }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)