Ascii value of char. in C#

  • Thread starter Thread starter sajit
  • Start date Start date
S

sajit

hi folks,

I am developing a module in asp.net with c# as code behind. The module
is used to encrypte the password. The problem is how to find the ascii
value of particular character.

Any help is appreciated.
Thank You.
 
using System;
using System.Collections.Generic;
using System.Text;
using System.Drawing;
using System.Diagnostics;
using System.Management;
using System.Runtime.InteropServices;
using System.IO;

namespace TestingGroundsCSharpConsole
{
class Program
{
static void Main(string[] args)
{
Byte[] bytes = ASCIIEncoding.ASCII.GetBytes("My String");
foreach (Byte b in bytes)
{
Console.Write(b.ToString() + ".");
}
Console.Read();
}
}
}
 
Back
Top