0
我希望DropDownLists出现的数量取决于BulletedList中的项目。我尝试了下面的代码。我如何在ASP.net中动态创建多个DropDownList VB
昏暗的数量作为新的DropDownList
For Each x As ListItem In BulletedList1.Items
quantity.ID = "mylist"
quantity.Items.Add(New ListItem("1", "1"))
quantity.Items.Add(New ListItem("2", "2"))
quantity.Items.Add(New ListItem("3", "3"))
quantity.Items.Add(New ListItem("4", "4"))
quantity.Items.Add(New ListItem("5", "5"))
PlaceHolder1.Controls.Add(quantity)
Next
试过了。没有工作 –