第三季度全球销量居首

| 2013/11/10 16:30:53

LG大型显示器


====

loading.gif


中秋页面.rar


        private void BindDrpClass()
        {
            DataTable dt = GetClassList("").Tables[0];
            ddlSort.Items.Clear();
            ddlSort.Items.Add(new ListItem("添加根栏目", "0"));
            DataRow[] drs = dt.Select("sParent= " + 0);

            foreach (DataRow dr in drs)
            {
                string classid = dr["ID"].ToString();
                string classname = dr["sName"].ToString();
                //顶级分类显示形式
                classname = "◆" + classname + "(" + classid + ")";

                ddlSort.Items.Add(new ListItem(classname, classid));
                int sonparentid = int.Parse(classid);
                string blank = "├";//
                //递归子分类方法
                BindDrpNode(sonparentid, dt, blank);
            }
            ddlSort.DataBind();
        }