コード例 #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();
    }
コード例 #2
0
    protected void DDLNivel_SelectedIndexChanged1(object sender, EventArgs e)
    {
        string idNivel    = DDLNivel.SelectedValue.ToString();
        string idEdificio = DDLEdificio.SelectedValue.ToString();

        ds = Logica.Aulas(idNivel, idEdificio);

        DDLNew.DataSource     = ds;
        DDLNew.DataValueField = "Cod_aula";
        DDLNew.DataTextField  = "Cod_aula";
        DDLNew.DataBind();
    }