Thank you very much, it works. I got the output that I want. My question is when I insert it to Database the output is
21 07580
21 15518
21 19558
21
it should be
21 07580
21 15518
21 19558
Here is my Code:
// string seperated by colons ';'
string info = HiddenMembers.Value.ToString();
string[] arInfo;
// define which character is seperating fields
char[] splitter = { ';' };
arInfo = info.Split(splitter);
for (int x = 0; x < arInfo.Length; x++)
{
//Response.Write(arInfo[x] + "<br>");
OracleTransaction myOracleTransactionMembers = con.BeginTransaction();
OracleCommand myOracleCommandMembers = con.CreateCommand();
myOracleCommandMembers.CommandText =
"INSERT INTO TEAM_MEMBERS (" +
" ITEM_NO,MEMBER_ID" +
") VALUES (" +
" '" + Label1.Text + "'," +
" '" + arInfo[x] + "'" +
")";
myOracleCommandMembers.ExecuteNonQuery();
myOracleTransactionMembers.Commit();
Thanks