byte[] EmployeeId = System.Text.Encoding.ASCII.GetBytes(comboBox1.SelectedItem.ToString());
(0x0000000000000733)
string str =comboBox1.SelectedItem.ToString(); byte[] arr = System.Text.Encoding.ASCII.GetBytes(str); // to check or debug your output string result = string.Empty; foreach(char ch in str) { result += Convert.ToString((int)ch,2); }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)