Bind dropdownlist with integers
I have an int variable, e.g.
int i = 100;

What I want to do is binding a ddl with 100 listitems, from 1 to 100.
I could cycle the variable and for each number adding a ListItem to the ddl, but I'd like to know if there's an alternative, something like value the DataSource with the variable.

Thanks
Bind dropdownlist with integers
===

I have an int variable, e.g.
int i = 100;

What I want to do is binding a ddl with 100 listitems, from 1 to 100.
I could cycle the variable and for each number adding a ListItem to the ddl, but I'd like to know if there's an alternative, something like value the DataSource with the variable.

Thanks