private void BindData() { var bus = new InfoGroupBus(); var dt = bus.Query(null, "OrderBy"); if (dt != null) { _menus = dt.DefaultView; _menus.RowFilter = "ParentId=0"; this.menu.DataSource = _menus; this.menu.DataBind(); } }
protected void Page_Load(object sender, EventArgs e) { if (!Page.IsPostBack) { InfoGroupBus bus = new InfoGroupBus(); var group = bus.QueryModel("GroupCode='" + this.GroupCode + "'"); if (group != null) { this.GroupName.Text = group.GroupName; } BindData(); } }