Esempio n. 1
0
        protected void IsActiveDropDownList_Init(object sender, EventArgs e)
        {
            isActiveDropDownList = sender as DropDownList;
            UserBL userBL = new UserBL();
            string value = userBL.IsActive(Convert.ToInt64(Session["EditUserID"]));

            foreach (ListItem item in isActiveDropDownList.Items)
            {
                if ( item.Value == value)
                {
                    item.Selected = true;
                    break;
                }
            }
        }