protected void btnVerAs_Click(object sender, EventArgs e)
        {
            WS_CrearAsociacion.CrearAsociacion CAn = new WS_CrearAsociacion.CrearAsociacion();

            IDAsociacion = CAn.ObtenerIDAsociacion(cmbAsociaciones.SelectedValue);

            Response.Redirect("Asociacion.aspx?ID=" + ID + "&IDA=" + IDAsociacion);
        }
Ejemplo n.º 2
0
        protected void btnCrear_Click(object sender, EventArgs e)
        {
            WS_CrearAsociacion.CrearAsociacion CA = new WS_CrearAsociacion.CrearAsociacion();

            if (txtNombreAs.Text != "" & txtObjetivo.Text != "")
            {
                CA.CreaAsociacion(txtNombreAs.Text, txtObjetivo.Text, ID);

                Response.Redirect("MisAsociaciones.aspx?ID=" + ID);
            }
            else
            {
                Response.Write("<script language=javascript>");
                Response.Write("alert('Campos Vacios!')");
                Response.Write("</script>");
            }
        }
        protected void Page_Load(object sender, EventArgs e)
        {
            ID = Convert.ToString(Request.QueryString["ID"]);

            WS_CrearAsociacion.CrearAsociacion CA = new WS_CrearAsociacion.CrearAsociacion();
            asociaciones = CA.ObtenerAsociaciones(ID);

            while (asociaciones[cont] != null)
            {
                TableRow Fila = new TableRow();
                tblAsociaciones.Rows.Add(Fila);
                Fila.BackColor = System.Drawing.Color.SkyBlue;

                TableCell Celda1 = new TableCell();
                Celda1.Text = asociaciones[cont];
                Fila.Cells.Add(Celda1);
                tblAsociaciones.Height = h;
                h = h + 50;

                cmbAsociaciones.Items.Add(asociaciones[cont]);

                cont++;
            }
        }