code for find the ascii value of character
how we can find the ascii value in c# code means if code is "c","d" etc.. how we find the ascii value through c # code in web application
Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Riddhi ValechaPosted Nov 3, 2014, 7:32 AM
VulpesPosted Nov 3, 2014, 6:46 AM
Jaganathan BantheswaranPosted Nov 3, 2014, 5:54 AM
You can do something like this,
string str = "Jaganthan";
byte[] asciis = Encoding.ASCII.GetBytes(str);
foreach(byte b in asciis ) {
Console.WriteLine(b); // ASCII value
}