private void Get_ParameterList() { MemLevel bllMemLevel = new MemLevel(); DataTable dtMemLevel = bllMemLevel.GetLists(" SysShopMemLevel.ShopID=" + this._UserShopID + " ").Tables[0]; this.gvMemLevel.DataSource = dtMemLevel; this.gvMemLevel.DataBind(); PageBase.BindSerialRepeater(this.gvMemLevel, 0); }
public void BindPreferentialObject() { DataTable dt = new MemLevel().GetList("").Tables[0]; this.sltPromotionsLevel.Items.Add(new ListItem("=== 所有会员 ===", "-1")); for (int i = 0; i < dt.Rows.Count; i++) { this.sltPromotionsLevel.Items.Add(new ListItem(dt.Rows[i]["LevelName"].ToString(), dt.Rows[i]["LevelID"].ToString())); } }