Forums » .NET » .NET »

how to convert string to binary


Posted Date: 04 Feb 2008      Posted By:: chella_kathir Profile photo    Member Level: Silver    Member Rank: 1366     Points: 2   Responses: 3



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




Responses

#185623    Author: Chaitra R      Member Level: Gold      Member Rank: 0     Date: 04/Feb/2008   Rating: 2 out of 52 out of 5     Points: 2

Convert.ToByte(string value);

 
#185706    Author: satyavani.namburu      Member Level: Bronze      Member Rank: 0     Date: 04/Feb/2008   Rating: 2 out of 52 out of 5     Points: 2

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

Convert.ToByte(string);


 
#306322    Author: Valeriu      Member Level: Bronze      Member Rank: 0     Date: 13/Oct/2008   Rating: 2 out of 52 out of 5     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





 
Post Reply

 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.



Next : Populate dropdownlist in datagrid
Previous : <<<<<<......plzzzzzzz.... help my dear friends.....>>>>>>>
Return to Discussion Forum
Post New Message
Category: .NET

Related Messages

Subscribe to Subscribers
Active Members
TodayLast 7 Daysmore...

Awards & Gifts
Talk to Webmaster Tony John
Copyright © SpiderWorks Technologies Pvt Ltd., Kochi, India