for (int i = 1; i <= 100 ; i++) { ListItem item = new ListItem(i); dropdownlist.Items.Add(item); }
Dropdownlist.Items.Add("value you want to add")
ddl.Items.Clear(); ddl.Items.Add(string.Empty); for (int i = 0; i <= 100; i++) { ddl.Items.Add(i.ToString()); }
for (int i = 0; i <= 100; i++) { ddl.Items.Add(i); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)