protected void btnGuardar_Click(object sender, EventArgs e) { int numMaxDigitos = Convert.ToInt32(System.Configuration.ConfigurationManager.AppSettings["NroMaxDigitos"]); List <SCE_CARTEL_MODELO_CAMPO_BE> lstCartelModeloCampo = new List <SCE_CARTEL_MODELO_CAMPO_BE>(); foreach (GridViewRow Row in grvCampos.Rows) { int i = Convert.ToInt32(Row.RowIndex); CARTEL_MODELO_CAMPO_BE = new SCE_CARTEL_MODELO_CAMPO_BE(); CheckBox check = Row.FindControl("chkSelection") as CheckBox; if (check.Checked) { CARTEL_MODELO_CAMPO_BE.ID_CARTEL = Convert.ToInt32(hidIdCartel.Value); CARTEL_MODELO_CAMPO_BE.ID_MODELO = Convert.ToInt32(hidIdModelo.Value); CARTEL_MODELO_CAMPO_BE.ID_CAMPO = Convert.ToInt32(grvCampos.Rows[i].Cells[0].Text); lstCartelModeloCampo.Add(CARTEL_MODELO_CAMPO_BE); } } CARTEL_MODELO_BL.ActualizarCMC(Convert.ToInt32(hidIdCartel.Value), Convert.ToInt32(hidIdModelo.Value), lstCartelModeloCampo, numMaxDigitos); //Util.RegisterAsyncAlert(upnlReglasCamp, "__Alerta__", Resources.Mensajes.msgCRCCAlertEjecución); pnlDetalle.Visible = false; GetData(); }