I have a radiobuttonlist on my aspx form. In the code-behind I populate this list using a simple array:
accessarray = strUseraccesscorp.Split(",")
rblStoreChoice.DataSource = accessarray
This displays the string values properly. An example of the data being displayed:
Once split, of course, it looks like this on the radio button list:
Instead of showing the numeric values I'd like to display something more readable. Is there some way I can loop through these array values and add a DataTextField value to the RBL of something easier to read?
If value = 1 then A elseif value = 2 then B elseif value = 3 then C and so on...
How can I show a better radio button list yet still use the numeric values when a selection is made?