Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > Ascii value of char. in C#

Reply
Thread Tools

Ascii value of char. in C#

 
 
sajit
Guest
Posts: n/a
 
      04-07-2007
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.

 
Reply With Quote
 
 
 
 
Ben Rush
Guest
Posts: n/a
 
      04-07-2007
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: oups.com...
> 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.
>



 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[c++] getting the ASCII value of a char Haas C++ 8 10-26-2011 02:49 AM
Dumb noob q: ASCII value of a character Steve Horsley Python 6 02-07-2008 06:44 AM
Regex with ASCII and non-ASCII chars TOXiC Python 5 01-31-2007 04:48 PM
[FR/EN] how to convert the characters ASCII(0-255) to ASCII(0-127) Alextophi Perl Misc 8 12-30-2005 10:43 AM
routine/module to translate microsoft extended ascii to plain ascii James O'Brien Perl Misc 3 03-05-2004 04:33 PM



Advertisments
 



1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57