コード例 #1
0
ファイル: list.aspx.cs プロジェクト: ooyuan/micro-emall
    protected void BrandBind()
    {
        List <WMGoodBrands> list = WMGoodBrands.GetList();

        BrandList.DataSource = list;
        BrandList.DataBind();
    }
コード例 #2
0
ファイル: list.aspx.cs プロジェクト: ooyuan/micro-emall
    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;
    }
コード例 #3
0
ファイル: add.aspx.cs プロジェクト: ooyuan/micro-emall
    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);
            }
        }
    }