2014-01-30 5 views

답변

0
var oListBox = new ListBox() { ID = "ID", TabIndex = 10 }; 
oListBox.Items.Add(new ListItem() { Text = "your text", Value = "your value" }); 
oListBox.Items.Add(new ListItem() { Text = "your text", Value = "your value" }); 

.... other items if you want .... 

Page.Controls.Add(oListBox);