Exemplo n.º 1
0
    protected void CategoryMasterBind()
    {
        List <WMGoodCategories> list = WMGoodCategories.GetList();

        CategoryMasterList.DataSource = list;
        CategoryMasterList.DataBind();
    }
Exemplo n.º 2
0
    protected void CategoryMasterBind(List <WMGoodCategories> cList)
    {
        List <WMGoodCategories> list = WMGoodCategories.GetList();

        CategoryMasterList.DataSource = list;
        CategoryMasterList.DataBind();

        if (!General.IsNullable(cList))
        {
            Helper.ExecScript(string.Format("var __mcid=\"{0}\";", cList[0].Id));

            if (cList.Count > 1)
            {
                Helper.ExecScript(string.Format("var __scid=\"{0}\";", cList.Last().Id));
            }
        }
    }