這是我的數據庫表。現在我想Branch_Id,ACC_NO和Acc_Type,使它看起來像000178963503或000211111102相結合,並在下拉列表顯示它 我的代碼是
string[] account_number;
string account;
for (int j = 0; j < dtAcc.Rows.Count;j++)
{
account = Convert.ToString(dtAcc.Rows[j][2])+Convert.ToString(dtAcc.Rows[j][5]) + Convert.ToString(dtAcc.Rows[j][3]); ///Account Number
account_number =account.Split(' ');
}
Drp_AccType.DataSource = account_number;
Drp_AccType.DataBind();
感謝
...感謝它的工作 – sun 2012-01-12 07:47:17