private static void closeConnection(ref SqlConnection objCon) { try { if (objCon.State == ConnectionState.Open) { //objCon.ConnectionString = ConfigurationManager.ConnectionStrings["ConnectDB"].ToString(); objCon.Close(); } } catch (Exception ex) { throw new Exception(ex.Message); } }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)