private void RptBind()
    {
        ax_navigation bll = new ax_navigation();

        this.rptList.DataSource = bll.GetList("0=0 order by sort_id");
        this.rptList.DataBind();
    }
Ejemplo n.º 2
0
    private void TreeBind()
    {
        ax_navigation bll = new ax_navigation();
        DataTable     dt  = bll.GetList("parent_id=0").Tables[0];

        this.ddlParentId.Items.Clear();
        this.ddlParentId.Items.Add(new ListItem("无父级导航", "0"));
        foreach (DataRow dr in dt.Rows)
        {
            string Id    = dr["id"].ToString();
            string Title = dr["title"].ToString().Trim();
            this.ddlParentId.Items.Add(new ListItem(Title, Id));
        }
    }