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

#185623    Author: Chaitra R    04 Feb 2008 Member Level: Gold   Points : 2

Convert.ToByte(string value);

#185706    Author: satyavani.namburu  04 Feb 2008 Member Level: Bronze   Points : 2

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

Convert.ToByte(string);

#306322    Author: Valeriu  13 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


This thread is locked for new responses. Please post your comments and questions as a separate thread.
If required, refer to the URL of this page in your new post.