protected void btnGuardar_Click(object sender, EventArgs e) { string strMsg = ""; if (hidId.Value == "") { strMsg = TIENDA_BL.IsValid(Convert.ToInt32(txtId.Text), txtDescripcion.Text.Trim().ToUpper(), true); if (strMsg.Length > 0) { Util.RegisterAsyncAlert(upnlTiendas, "__Alerta__", strMsg); return; } TIENDA_BL.Insertar(Convert.ToInt32(txtId.Text), txtDescripcion.Text.Trim().ToUpper()); //Util.RegisterAsyncAlert(upnlTiendas, "__Alerta__", Resources.Mensajes.msgTiendaAlertEjecución); } else { strMsg = TIENDA_BL.IsValid(Convert.ToInt32(hidId.Value), txtDescripcion.Text.Trim().ToUpper(), false); if (strMsg.Length > 0) { Util.RegisterAsyncAlert(upnlTiendas, "__Alerta__", strMsg); return; } TIENDA_BL.Actualizar(Convert.ToInt32(hidId.Value), txtDescripcion.Text.Trim().ToUpper()); //Util.RegisterAsyncAlert(upnlTiendas, "__Alerta__", Resources.Mensajes.msgTiendaAlertModificacion); } LoadData(); }