C# Fill a Dropdown List and For Loop

Here is a quick syntax for a For loop and filling a dropdown list with an incrementing number using C#.

for (Int16 i = 1; i <= iMax; i++)

{

   ListItem item = new ListItem(i.ToString()); ;

   ddlNumber.Items.Add(item);

}