Possible Duplicate:
Converting Enumerable.Range to a List of Strings
In ASP.NET how do I populate a drop down list and also include text for the default selected state?
For eg.
A drop down will contain: Enter day, 1, 2, 3, 4, 5
ddlDayDropDown.DataSource = Enumerable.Range(1, 31).ToList();
ddlDayDropDown.DataBind();
I can’t add a “string” here.
1 Answer