protected void GridView1_SelectedIndexChanged(object sender, EventArgs e) { this.lblid.Text = Convert.ToString(this.GridView1.Rows[GridView1.SelectedIndex].Cells[1].Text); this.txtnombres.Text = Convert.ToString(this.GridView1.Rows[GridView1.SelectedIndex].Cells[2].Text); this.txtApellidoPaterno.Text = Convert.ToString(this.GridView1.Rows[GridView1.SelectedIndex].Cells[3].Text); this.txtapllidomaterno.Text = Convert.ToString(this.GridView1.Rows[GridView1.SelectedIndex].Cells[4].Text); this.txtfechanacimiento.Value = Convert.ToString(this.GridView1.Rows[GridView1.SelectedIndex].Cells[5].Text); this.txtnomturor.Text = Convert.ToString(this.GridView1.Rows[GridView1.SelectedIndex].Cells[6].Text); this.txttelfonoturo.Text = Convert.ToString(this.GridView1.Rows[GridView1.SelectedIndex].Cells[7].Text); // this.imagenparameidco.ImageUrl= (this.GridView1.Rows[GridView1.SelectedIndex].Cells[5].Text); Alumnos.Folio = int.Parse(lblid.Text); System.Data.DataTable tbxsdfdee = prueba.ConsultaImagenAlumno(Alumnos); System.Data.DataTable datosfull = prueba.ConsultaDatosFull(Alumnos); chknuevo.Text = datosfull.Rows[0][2].ToString(); chkrevalida.Text = datosfull.Rows[0][3].ToString(); txtcurp.Text = datosfull.Rows[0][8].ToString(); txtcalle.Text = datosfull.Rows[0][9].ToString(); txtnumero.Text = datosfull.Rows[0][10].ToString(); txtcolonia.Text = datosfull.Rows[0][11].ToString(); txtcodigopostal.Text = datosfull.Rows[0][12].ToString(); txttelefonocasa.Text = datosfull.Rows[0][13].ToString(); DPestado.Text = datosfull.Rows[0][14].ToString(); dpmunicipio.Text = datosfull.Rows[0][15].ToString(); txtnompadre.Text = datosfull.Rows[0][16].ToString(); txtnombreMadre.Text = datosfull.Rows[0][17].ToString(); txtnomturor.Text = datosfull.Rows[0][18].ToString(); txttelefonopadre.Text = datosfull.Rows[0][19].ToString(); txttelmadre.Text = datosfull.Rows[0][20].ToString(); txttelfonoturo.Text = datosfull.Rows[0][21].ToString(); if (txtnomturor.Text == txtnompadre.Text) { chkpadretutor.Checked = true; } else if (txtnomturor.Text == txtnombreMadre.Text) { chkmadretutor.Checked = true; } if (chknuevo.Text == "Nuevo") { chknuevo.Checked = true; } else { chknuevo.Checked = false; chknuevo.Text = "Nuevo"; } if (chkrevalida.Text == "Revalida") { chkrevalida.Checked = true; } else { chkrevalida.Checked = false; chkrevalida.Text = "Revalida"; } txtescuela.Text = datosfull.Rows[0][22].ToString(); txtclave.Text = datosfull.Rows[0][23].ToString(); dpturno.Text = datosfull.Rows[0][24].ToString(); checkacta.Text = datosfull.Rows[0][25].ToString(); if (checkacta.Text == "SI") { checkacta.Checked = true; checkacta.Text = "Acta"; } else { checkacta.Checked = false; checkacta.Text = "Acta"; } checkfotos.Text = datosfull.Rows[0][26].ToString(); if (checkfotos.Text == "SI") { checkfotos.Checked = true; checkacta.Text = "Fotos"; } else { checkfotos.Checked = false; checkfotos.Text = "Fotos"; } checkcurp.Text = datosfull.Rows[0][27].ToString(); if (checkcurp.Text == "SI") { checkcurp.Checked = true; checkcurp.Text = "Curp"; } else { checkcurp.Checked = false; checkcurp.Text = "Curp"; } checkconstancia.Text = datosfull.Rows[0][28].ToString(); if (checkconstancia.Text == "SI") { checkconstancia.Checked = true; checkconstancia.Text = "Constancia"; } else { checkconstancia.Checked = false; checkconstancia.Text = "Constancia"; } checkcomrodomicilio.Text = datosfull.Rows[0][29].ToString(); if (checkcomrodomicilio.Text == "SI") { checkcomrodomicilio.Checked = true; checkcomrodomicilio.Text = "Comprobante de Domicilio"; } else { checkcomrodomicilio.Checked = false; checkcomrodomicilio.Text = "Comprobante de Domicilio"; } checkboleta.Text = datosfull.Rows[0][30].ToString(); if (checkboleta.Text == "SI") { checkboleta.Checked = true; checkboleta.Text = "Boletas de Calificación"; } else { checkboleta.Checked = false; checkboleta.Text = "Boletas de Calificación"; } checkcertificadoparcial.Text = datosfull.Rows[0][31].ToString(); if (checkcertificadoparcial.Text == "SI") { checkcertificadoparcial.Checked = true; checkcertificadoparcial.Text = "Certificado Parcial"; } else { checkcertificadoparcial.Checked = false; checkcertificadoparcial.Text = "Certificado Parcial"; } checkoficioreva.Text = datosfull.Rows[0][32].ToString(); if (checkoficioreva.Text == "SI") { checkoficioreva.Checked = true; checkoficioreva.Text = "Oficio de Revalidación"; } else { checkoficioreva.Checked = false; checkoficioreva.Text = "Oficio de Revalidación"; } checkconstanciamedia.Text = datosfull.Rows[0][33].ToString(); if (checkconstanciamedia.Text == "SI") { checkconstanciamedia.Checked = true; checkconstanciamedia.Text = "Constancia de comp. 1/2"; } else { checkconstanciamedia.Checked = false; checkconstanciamedia.Text = "Constancia de Comp. 1/2"; } checkcertificadosecundaria.Text = datosfull.Rows[0][34].ToString(); if (checkcertificadosecundaria.Text == "SI") { checkcertificadosecundaria.Checked = true; checkcertificadosecundaria.Text = "Certificado de Secundaria"; } else { checkcertificadosecundaria.Checked = false; checkcertificadosecundaria.Text = "Certificado de Secundaria"; } txtotros.Text = datosfull.Rows[0][35].ToString(); Image1.ImageUrl = "../img/" + tbxsdfdee.Rows[0][0].ToString(); btnactualizar.Visible = true; btnlimpiar.Visible = true; }