Users Pricing

forum

Home Forums populate dropdownlist with all numbers in between 2 numbers – MindStick

populate dropdownlist with all numbers in between 2 numbers

Anonymous User 2330 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.


2 Answers

Markdown for AI

A clean, structured version of this page for AI assistants and LLMs.

Open .md