110,501
社区成员
发帖
与我相关
我的任务
分享
DataTable table = myds.Tables[0];
//int i, j; j = 1; i = 1;
byte[] array;
string str = null;
foreach (DataRow row in table.Rows)
{
row[1].ToString();
array= System.Text.Encoding.ASCII.GetBytes(row[1].ToString());
for (int i = 0; i < array.Length; i++)
{
int asciicode = (int)(array[i]);
str += Convert.ToString(asciicode) + ",";
}
MessageBox.Show(row[1].ToString() + "#" + str);
}
Regex.Replace(str,@"\s+"," ")