Exemplo n.º 1
0
 public override void DataBind()
 {
     this.Items.Clear();
     foreach (DataRow row in SubSiteProducthelper.GetAuthorizeProductLines().Rows)
     {
         this.Items.Add(new ListItem(string.Concat(new object[] { Globals.HtmlDecode((string)row["Name"]), "(", row["ProductCount"], ")" }), row["LineId"].ToString()));
     }
 }
        public override void DataBind()
        {
            this.Items.Clear();
            DataTable authorizeProductLines = SubSiteProducthelper.GetAuthorizeProductLines();

            foreach (DataRow dataRow in authorizeProductLines.Rows)
            {
                this.Items.Add(new System.Web.UI.WebControls.ListItem(string.Concat(new object[]
                {
                    Globals.HtmlDecode((string)dataRow["Name"]),
                    "(",
                    dataRow["ProductCount"],
                    ")"
                }), dataRow["LineId"].ToString()));
            }
        }
Exemplo n.º 3
0
 void BindData()
 {
     grdProductLine.DataSource = SubSiteProducthelper.GetAuthorizeProductLines();
     grdProductLine.DataBind();
 }
Exemplo n.º 4
0
 private void BindData()
 {
     this.grdProductLine.DataSource = SubSiteProducthelper.GetAuthorizeProductLines();
     this.grdProductLine.DataBind();
 }