protected void DDLFuncion_SelectedIndexChanged(object sender, EventArgs e) { try { Programa objPrograma = new Programa(); List <Programa> list = new List <Programa>(); objPrograma.Funcion = DDLFuncion.SelectedValue; CN_Programa.ProgramasGrid(ref objPrograma, ref list); //SqlDataAdapter sda = new SqlDataAdapter(cmd); //DataSet ds = new DataSet(); //sda.Fill(ds);// GRDProgramas.DataSource = list; GRDProgramas.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "modal", "mostrar_modal(0, '" + ex.Message + "')", true); } }
protected void GRDCargarDatosFuncion() { try { Multiview1.ActiveViewIndex = 0; Programa objPrograma = new Programa(); List <Programa> list = new List <Programa>(); objPrograma.Funcion = "0"; CN_Programa.ProgramasGrid(ref objPrograma, ref list); //SqlDataAdapter sda = new SqlDataAdapter(cmd); //DataSet ds = new DataSet(); //sda.Fill(ds);// GRDProgramas.DataSource = list; GRDProgramas.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "modal", "mostrar_modal(0, '" + ex.Message + "')", true); } }
protected void DDLNvlacd_SelectedIndexChanged(object sender, EventArgs e) { try { Subprograma objSubprogramaa = new Subprograma(); List <Subprograma> list = new List <Subprograma>(); objSubprogramaa.DependenciaI = "11101"; objSubprogramaa.DependenciaF = "81101"; objSubprogramaa.NivAcad = DDLNvlacd.SelectedValue; objSubprogramaa.Ejercicio = SesionUsu.Usu_Ejercicio; CN_Subprog.SubprogramasGrid(ref objSubprogramaa, ref list); //SqlDataAdapter sda = new SqlDataAdapter(cmd); //DataSet ds = new DataSet(); //sda.Fill(ds);// GRDProgramas.DataSource = list; GRDProgramas.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "modal", "mostrar_modal(0, '" + ex.Message + "')", true); } }
protected void GRDCargarDatosFuncion() { try { Multiview1.ActiveViewIndex = 0; Subprograma objSubprogramaa = new Subprograma(); List <Subprograma> list = new List <Subprograma>(); objSubprogramaa.DependenciaI = "11101"; objSubprogramaa.DependenciaF = "81101"; objSubprogramaa.NivAcad = "9"; objSubprogramaa.Ejercicio = SesionUsu.Usu_Ejercicio; CN_Subprog.SubprogramasGrid(ref objSubprogramaa, ref list); //SqlDataAdapter sda = new SqlDataAdapter(cmd); //DataSet ds = new DataSet(); //sda.Fill(ds);// GRDProgramas.DataSource = list; GRDProgramas.DataBind(); } catch (Exception ex) { ScriptManager.RegisterStartupScript(this.Page, Page.GetType(), "modal", "mostrar_modal(0, '" + ex.Message + "')", true); } }