forum

Home / DeveloperSection / Forums / populate dropdownlist with all numbers in between 2 numbers

populate dropdownlist with all numbers in between 2 numbers

Anonymous User 1758 08-Dec-2014
<asp:DropDownList ID="ddlAge" runat="server"/> 
Label ages = (Label)e.Row.FindControl("Ages"); 
//The value ages returns is different every time but it will be in this format
// 3 - 11

So i would like to grab the 3 from the left of the dash and then grab the 11 from the right of the dash and populate my dropdownlist with the values of 3,4,5,6,7,8,9,10,11 if possible just not sure how to go about doing this.


Updated on 09-Dec-2014
I am a content writter !

Can you answer this question?


Answer

2 Answers

Liked By