protected void InsertarPublicacion_Click(object sender, EventArgs e) { Clases.cEmpleosDatos ins = new Clases.cEmpleosDatos(); if (ins.insertar("*****@*****.**", NumJornada.Text, Horario.Text, Conocimientos.Text, Salario.Text)) { limpiarTextBoxIP(); cargarGV1(); } }
protected void GridView1_SelectedIndexChanged1(object sender, EventArgs e) { try { Clases.cEmpleosDatos ins = new Clases.cEmpleosDatos(); string indice = Convert.ToString(GridView1.SelectedDataKey.Value); if (ins.Numero(indice)) { int _iNUM_PUBLIACIONES = Convert.ToInt32(indice); ins.eliminar(_iNUM_PUBLIACIONES); cargarGV1(); } } catch(Exception ex) { } }