if (((int)sqlcom.Parameters["@ErrorCode"].Value) == 1)