protected void Page_Load(object sender, EventArgs e) { if (!IsPostBack) { string[] array = { "10%", "20%", "30%", "40%", "50%", "60%", "70%", "80%", "90%", "100%" }; ddlDiscount.DataSource = array; ddlDiscount.DataBind(); string[] arrayPromotion = { "Kit", "Total" }; ddlPromotion.DataSource = arrayPromotion; ddlPromotion.DataBind(); //var listParameters = data.Split('|'); //lblName.Text = listParameters[0] + ' ' + listParameters[1]; //lblU.Text = dataUserFather; brUser = new BrUser(); string respData = brUser.getSons(Session["userBack"].ToString()); var listParametersData = respData.Split('¬'); //string[] socios = { "pc.png", "mic.png", "ipod.png" }; var listParametersDataBehind = listParametersData; for (int i = 0; i <= listParametersDataBehind.Length - 1; i++) { var _array = listParametersDataBehind[i].Split('|'); _array[0] = ""; //ddlSons.DataSource= listParametersDataBehind[i]; //ddlSons.Va // ddlSons.Items.Add(new ListItem(listParametersDataBehind[i], i.ToString())); ddlPersons.Items.Add(new ListItem(" " + _array[1] + " " + _array[2] + " / " + _array[3], i.ToString())); // ddlSons.Items.Add(item); } ddlPersons.DataBind(); } }