Get the alphabet by looping through the ASCII values 65 to 90, which correspond to uppercase A through Z.
1. protected void GetAlphabet()
2. {
3. string strAlpha = "";
4. for (int i = 65; i <= 90; i++) // Loop through the ASCII characters 65 to 90
5. {
6. strAlpha += ((char)i).ToString() + " "; // Convert the int to a char to get the actual character behind the ASCII code
7. }
8. }