You must Sign In to post a response.

how to convert string to binary

hi All..,


how to convert String to Binary?
how to convert String to Ascii?
how to convert Ascii to Binary?
how to convert Ascii to String?
how to convert Binary to Hex?
how to convert Binary to decimal?
how to convert Decimal to Hex?
how to convert Deciaml to Octal?
how to convert Hexa to Decimal?

pls.. If you know other conversion...give coding


by
K.C


Comments

Author: Chaitra R04 Feb 2008 Member Level: Gold   Points : 2

Convert.ToByte(string value);

Author: satyavani.namburu04 Feb 2008 Member Level: Bronze   Points : 2

To convert a string to binary u can use this code line.

Convert.ToByte(string);

Author: Valeriu13 Oct 2008 Member Level: Bronze   Points : 3

Hi! this is the code for Convert from DEC - HEX

string charnumar = "23";
int numar;

numar = Convert.ToInt32(charnumar);

//From Dec-Hex
charnumar = numar.ToString("X");



;) Have a good day ! ;)

Valercik