You must Sign In to post a response.
  • Category: .NET

    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
  • #185623
    Convert.ToByte(string value);

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

    Convert.ToByte(string);

  • #306322
    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.