protected void Page_Load(object sender, EventArgs e) { ID = Convert.ToString(Request.QueryString["ID"]); NickN = ACo.ObtenerNombreUsuario(ID); Contactos = ACo.ObtenerListaContactos(ID, NickN); while (Contactos[ContC] != null) { TableRow Fila = new TableRow(); tblAmigos.Rows.Add(Fila); Fila.BackColor = System.Drawing.Color.SkyBlue; TableCell Celda1 = new TableCell(); Celda1.Text = Contactos[ContC]; Fila.Cells.Add(Celda1); tblAmigos.Height = h; h = h + 50; cmbAmigos.Items.Add(Contactos[ContC]); ContC++; } }
protected void Page_Load(object sender, EventArgs e) { ID = Convert.ToString(Request.QueryString["ID"]); IDA = Convert.ToString(Request.QueryString["IDA"]); WS_InvitarAsociacion.InvitarAsociacion IA = new WS_InvitarAsociacion.InvitarAsociacion(); Datos = IA.ObtenerMiembrosAsociacion(IDA); while (Datos[contD] != null) { TableRow Fila = new TableRow(); tblMiembros.Rows.Add(Fila); Fila.BackColor = System.Drawing.Color.SkyBlue; TableCell Celda1 = new TableCell(); Celda1.Text = Datos[contD]; Fila.Cells.Add(Celda1); TableCell Celda2 = new TableCell(); Celda2.Text = Datos[contD + 1]; Fila.Cells.Add(Celda2); tblMiembros.Height = h; h = h + 50; cmbMiembros.Items.Add(Datos[contD]); contD++; contD++; } //------------------------------------------------ WS_AgregarContacto.AgregarContacto ACo = new WS_AgregarContacto.AgregarContacto(); NickN = ACo.ObtenerNombreUsuario(ID); Contactos = ACo.ObtenerListaContactos(ID, NickN); while (Contactos[ContC] != null) { cmbContactos.Items.Add(Contactos[ContC]); ContC++; } }
protected void Page_Load(object sender, EventArgs e) { ID = Convert.ToString(Request.QueryString["ID"]); IDv = Convert.ToString(Request.QueryString["IDv"]); Nom1 = ACo.ObtenerNombreUsuario(ID); Nom2 = ACo.ObtenerNombreUsuario(IDv); if (IDv == null | IDv == "") { WS_VerPerfil.VerPerfil VP = new WS_VerPerfil.VerPerfil(); Estados = VP.ObtenerEstados(ID); btnAñadirContacto.Enabled = false; btnDenunciar.Enabled = false; lblUsuario.Text = Nom1; } else { txtPublicacion.Enabled = false; btnPublicar.Enabled = false; WS_VerPerfil.VerPerfil VP = new WS_VerPerfil.VerPerfil(); Estados = VP.ObtenerEstados(IDv); //-------------Verificar Amistad------ Am1 = ACo.ComprobarAmistad(ID, Nom2); Am2 = ACo.ComprobarAmistad(IDv, Nom1); if (Am1 == true | Am2 == true) { btnAñadirContacto.Enabled = false; } //--------------Nombre-------------- lblUsuario.Text = Nom2; } while (Estados[cont] != null) { cont++; } /* TextBox1 = new TextBox(); * TextBox1.ID = "TextBox1"; * TextBox1.Style["Position"] = "Absolute"; * TextBox1.Style["Top"] = "25px"; * TextBox1.Style["Left"] = "100px"; * Form1.Controls.Add(TextBox1);*/ for (int i = cont - 1; i > -1; i--) { TableRow Fila = new TableRow(); tblPublicaciones.Rows.Add(Fila); Fila.BackColor = System.Drawing.Color.SkyBlue; TableCell Celda1 = new TableCell(); Celda1.Text = Estados[i]; Fila.Cells.Add(Celda1); tblPublicaciones.Height = h; h = h + 50; } }