private void ObtenerSegmentos(int prd) { ArrayList list = new ArrayList(); Sesion Sesion = new Sesion(); Sesion = (Sesion)Session["Sesion" + Session.SessionID]; CN_CatProducto_Segmento catproductosegmento = new CN_CatProducto_Segmento(); SegmentoProducto segmentoproducto = new SegmentoProducto(); segmentoproducto.Id_Emp = Sesion.Id_Emp; segmentoproducto.Id_Cd = Sesion.Id_Cd_Ver; segmentoproducto.Id_Prd = prd; catproductosegmento.ConsultaSegmentoProducto(ref segmentoproducto, Sesion.Emp_Cnx, ref list); txtContribucion.Text = segmentoproducto.Pds_Contribucion.ToString("#,##0.00"); for (int x = 0; x < rg1.Items.Count; x++) { (rg1.Items[x]["seleccionar"].FindControl("chkSel") as CheckBox).Checked = list.Contains(rg1.Items[x]["Id_Seg"].Text); } }