Example #1
0
    protected void BrandBind()
    {
        List <WMGoodBrands> list = WMGoodBrands.GetList();

        BrandList.DataSource = list;
        BrandList.DataBind();
    }
Example #2
0
    protected void Bind()
    {
        int pageCount            = 0;
        List <WMGoodBrands> list = WMGoodBrands.GetList(out pageCount, Name, Pager.CurrentPageIndex - 1, Pager.PageSize);

        ListConatner.DataSource = list;
        ListConatner.DataBind();
        Pager.RecordCount = pageCount;
    }
Example #3
0
    protected void BrandBind()
    {
        List <WMGoodBrands> list = WMGoodBrands.GetList();

        if (!General.IsNullable(list))
        {
            BrandList.Items.Clear();
            foreach (var b in list)
            {
                ListItem item = new ListItem();
                item.Text  = b.Name;
                item.Value = b.Id;
                BrandList.Items.Add(item);
            }
        }
    }