private void ResultadoContenidoP() { MostrarDDLReunion.Visible = true; MostrarDDLestadoP.Visible = true; Terminar.Visible = true; try { OracleConnection conn = con.crearConexion(); OracleCommand cmd = null; if (conn != null) { string sql = "select p.PROP_CODIGO,p.PROP_TITULO, l.LINV_NOMBRE, t.TEM_NOMBRE from propuesta p, lin_investigacion l, tema t where t.LINV_CODIGO = l.LINV_CODIGO and t.TEM_CODIGO = p.TEM_CODIGO and p.PROP_CODIGO = '" + Metodo.Value + "'"; cmd = new OracleCommand(sql, conn); cmd.CommandType = CommandType.Text; using (OracleDataReader reader = cmd.ExecuteReader()){ DataTable dataTable = new DataTable(); dataTable.Load(reader); GVConsultaContenidoP.DataSource = dataTable; } GVConsultaContenidoP.DataBind(); } conn.Close(); }catch (Exception ex) { Linfo.Text = "Error al cargar la lista: " + ex.Message; } }
private void ResultadoContenidoP() { try{ OracleConnection conn = con.crearConexion(); OracleCommand cmd = null; if (conn != null) { string sql = "select p.PROP_CODIGO,p.PROP_TITULO, l.LINV_NOMBRE, t.TEM_NOMBRE from propuesta p, lin_investigacion l, tema t " + "where t.LINV_CODIGO = l.LINV_CODIGO and t.TEM_CODIGO = p.TEM_CODIGO and p.PROP_CODIGO = '" + Metodo.Value + "'"; cmd = new OracleCommand(sql, conn); cmd.CommandType = CommandType.Text; using (OracleDataReader reader = cmd.ExecuteReader()) { DataTable dataTable = new DataTable(); dataTable.Load(reader); GVConsultaContenidoP.DataSource = dataTable; } GVConsultaContenidoP.DataBind(); } conn.Close(); } catch (Exception ex) { } }