How to get the ascii value of any alphabet

if i type in text box = A ,then i should get ascii value of A=65

Maybe this can help

Procedure

or extension