Esempio n. 1
0
    protected void DDLEdificio_SelectedIndexChanged(object sender, EventArgs e)
    {
        string idEdif = DDLEdificio.SelectedValue.ToString();

        int Niv = Convert.ToInt32(Logica.Num_Niv(idEdif));

        ds = Logica.Niveles(Niv);

        DDLNivel.DataSource     = ds;
        DDLNivel.DataValueField = "Id_Nivel";
        DDLNivel.DataTextField  = "Nivel";
        DDLNivel.DataBind();
        string aux = "";

        aux = DDLNivel.Text;

        //string idNivel = DDLNivel.SelectedValue.ToString();
        string idEdificio = DDLEdificio.SelectedValue.ToString();

        DataSet ds2 = new DataSet();

        ds2 = Logica.Aulas(aux, idEdificio);

        DDLNew.DataSource     = ds2;
        DDLNew.DataValueField = "Cod_aula";
        DDLNew.DataTextField  = "Cod_aula";
        DDLNew.DataBind();
    }
Esempio n. 2
0
    protected void DDLEdificio_SelectedIndexChanged(object sender, EventArgs e)
    {
        string res = DDLEdificio.SelectedValue.ToString();

        int num = Convert.ToInt32(Logica.Num_Niv(res));

        DataSet ds = new DataSet();

        ds = Logica.Niveles(num);

        DDLNivel.DataSource     = ds;
        DDLNivel.DataValueField = "Id_Nivel";
        DDLNivel.DataTextField  = "Nivel";
        DDLNivel.DataBind();
    }