Hi everyone,
I want to populate fields in repeating table with information from Sql
database, that works fine with this script:
SqlConnection myConnection = new SqlConnection("user
id=sa;" +
"password=MyPassword;server=MyServer;"
+
"Trusted_Connection=yes;" +
"database=MyDatabase; " +
"connection timeout=30");
myConnection.Open();
SqlDataReader myReader = null;
SqlCommand myCommand = new
SqlCommand("select
* from MyTable where [NOM] like '" + field8 + "'",
myConnection);
myReader = myCommand.ExecuteReader();
while (myReader.Read())
{
Mail.SetValue(myReader["EMAIL_ADRESS"].ToString());
Job.SetValue(myReader["POSITION"].ToString());
}
And the result is that i have information (Email, Position) for the first row in the repeating table.
But when i add a new attendee and I click the button I don’t get information’s for the second attendee.
Help me please.
Best reagards