Example #1
0
        protected void Brand_Change(object sender, EventArgs e)
        {
            List <string> list = new List <string>();

            foreach (ListItem item in ComputerBrand.Items)
            {
                if (item.Selected)
                {
                    list.Add(item.Value);
                }
            }
            if (list.Count == 0)
            {
                list = new List <string>(getBrandList());
            }
            SessionData data = (SessionData)Session["data"];

            data.BrandList  = list;
            Session["data"] = data;
            ComputerList.DataBind();
        }