Exemplo n.º 1
0
    private void class_bind()
    {
        tbl_sinkia_class bll = new tbl_sinkia_class();
        DataTable        dt  = bll.GetList("1=1   order by sort_id").Tables[0];

        this.pid.Items.Clear();
        this.pid.Items.Add(new ListItem("请选择商品大类...", ""));
        foreach (DataRow dr in dt.Rows)
        {
            string Id    = dr["id"].ToString();
            string Title = dr["pro_class"].ToString().Trim();
            this.pid.Items.Add(new ListItem(Title, Id));
        }
    }
Exemplo n.º 2
0
    private void RptBind(string _strWhere, string _orderby)
    {
        this.page        = AXRequest.GetQueryInt("page", 1);
        txtKeywords.Text = this.keywords;
        tbl_sinkia_class bll = new tbl_sinkia_class();

        this.rptList.DataSource = bll.GetList(this.pageSize, this.page, _strWhere, _orderby, out this.totalCount);
        this.rptList.DataBind();

        //绑定页码
        txtPageNum.Text = this.pageSize.ToString();
        string pageUrl = Utils.CombUrlTxt("pro_class_list.aspx", "keywords={0}&page={1}", this.keywords, "__id__");

        PageContent.InnerHtml = Utils.OutPageList(this.pageSize, this.page, this.totalCount, pageUrl, 8);
    }