I am trying to get the SQL Error number when inserting from a FormView/DetailsView, etc. Insert command. I can use the Inserted event on the datasource to check for an exception, but e only has e.message not e.number. I want to capture the number (e.g., 515) like you can when inserting directly with the datasource and catching SqlException. (SqlException exsql; int x = exsql.number Thanks