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 ............
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 ............
write simple mapping function which returns corresponding alphabet.
The answers to this question will help. Basically you can just cast your int to a char if you want a really rudimentary solution.
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.