Here's the full code:
ListItem item;
for (int i = 0; i < 3; i++)
{
if (i == 0)
{
int value = 5;
item = new ListItem("One", value);
DropDownList1.Items.Add(item);
}
else if (i == 1)
{
int value = 25;
item = new ListItem("Two", value);
DropDownList1.Items.Add(item);
}
else if (i == 2)
{
int value = 7;
item = new ListItem("Three", value);
DropDownList1.Items.Add(item);
}
}