
This is my database table. Now I want to combine Branch_Id, Acc_no and Acc_Type so that it looks like 000178963503 or 000211111102 and display it in a dropdownlist
My code is
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();
Thanks
I am not sure what are you achieving with
account_number =account.Split(' ');