Using the ASCII codes to quickly write out a Table of Contents at the top of a webpage! 3 lines of code!
Here is a quick and dirty way of writing a complete listing of the alphabet across the top of any page. You could use this for a directory listing, easily making this a way to narrow down whatever your categorizing. Just click the link and poof! This could submit to a page that uses the letter in a WHERE statement! Enjoy!!
<B>ASCII #'s from 65 to 90 are the Capital Letters of the Alphabet</b> <table border="1" width="80%"> <tr>
</tr> <tr> <% for x= 65 to 90 response.write "<td><a href='tocwithletter.asp?someid=" & chr(x) & "'>" & chr(x) & "</td>" Next %> </tr> </table> <br> <br> <br> <br> <b>ASCII #'s from 97 to 122 are the small Letters of the Alphabet</b>
<table border="1" width="80%"> <tr>
</tr> <tr> <% for x= 97 to 122 response.write "<td><a href='tocwithletter.asp?someid" & chr(x) & "'>" & chr(x) & "</td>" Next %> </tr> </table>