Example #1
0
        protected void IdU_SelectedIndexChanged(object sender, EventArgs e)
        {
            App_Code.Base db   = new App_Code.Base(WebConfigurationManager.ConnectionStrings["DefaultConnection"].ToString());
            List <string> list = db.GetIdM(IdU.SelectedValue);

            IdM.DataSource = list;
            IdM.DataBind();
            IdM.SelectedIndex = 0;
            IdM_SelectedIndexChanged(sender, e);
        }
Example #2
0
        protected void IdU_SelectedIndexChanged(object sender, EventArgs e)
        {
            App_Code.Base db = new App_Code.Base(WebConfigurationManager.ConnectionStrings["DefaultConnection"].ToString());
            List <string> ls = db.GetIdM(IdU.SelectedValue);

            IdM.DataSource = ls;
            IdM.DataBind();
            if (ls.Count > 0)
            {
                IdM.SelectedIndex = 0;
            }
            IdM_SelectedIndexChanged(sender, e);
            LiftId_SelectedIndexChanged(this, EventArgs.Empty);
        }