Ascii value of char. in C#

Discussion in 'ASP .Net' started by sajit, Apr 7, 2007.

  1. sajit

    sajit Guest

    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.
     
    sajit, Apr 7, 2007
    #1
    1. Advertising

  2. sajit

    Ben Rush Guest

    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();
    }
    }
    }
    --
    ~~~~~~~~~~~
    Ben Rush
    http://www.ben-rush.net/blog


    "sajit" <> wrote in message
    news:...
    > 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.
    >
     
    Ben Rush, Apr 7, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Haas
    Replies:
    8
    Views:
    117,164
    Sambit
    Oct 26, 2011
  2. lovecreatesbeauty
    Replies:
    1
    Views:
    1,097
    Ian Collins
    May 9, 2006
  3. Jim Langston
    Replies:
    5
    Views:
    424
    Jonathan Mcdougall
    May 6, 2006
  4. Aneesh E Warrier
    Replies:
    6
    Views:
    1,529
  5. Replies:
    1
    Views:
    543
    7stud
    Apr 10, 2007
Loading...

Share This Page