try-catch
try { //your code in the page } catch(Exception ex) { //open a DB connection //Insert the exception details to your table // close your connection after inserting }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)