views:

24

answers:

3

I have an asp.net page, i want to change the active index numerical values to text values?

like.........

currently it is 1 to 2 and it goes like increasing............

instead ..i want a,b,c,d ............

+1  A: 

write simple mapping function which returns corresponding alphabet.

TheVillageIdiot
+1  A: 

The answers to this question will help. Basically you can just cast your int to a char if you want a really rudimentary solution.

Paul Suart
+1  A: 

You can convert them easily using:

char c = (char)(96 + index);

It will return a when index is 1, b when 2 and so on...

You will have to write additional code if you want aa for index value of 27.

Yogesh