public void SetListBox4Content() { if (!IsPostBack) { for (int i = 0; i <= 9; i++) { List <List <string> > ListDropdownContent = _business.GetProjectManagerDropDownContent(); //--Var List <string> Names = new List <string>(); string lbEdit = "lbEdit" + i.ToString() + "3"; var container = Master.FindControl("Body"); var DropDownData = container.FindControl(lbEdit) as ListBox; for (int i2 = 0; i2 < ListDropdownContent.Count; i2++) { Names.Add(ListDropdownContent[i2][1]); } DropDownData.DataSource = Names; DropDownData.DataBind(); for (int i2 = 0; i2 < ListDropdownContent.Count; i2++) { DropDownData.Items[i2].Value = ListDropdownContent[i2][0]; } } } }