S
suzy
i'm sure there must be a simple answer to this but i can't find it on the
net.
i have a dataset which contains data about 2 tables (tableA and tableB).
i would like to loop through records of tableA (in the dataset) and read the
values.
i have done the following, but i know its wrong because it doesn't work...
what am i doing wrong?
thanks!
for (long i = 0; i <= oDataSetMessages.Tables["tableA"].Rows.Count; i++)
{
long lngPrimaryKeyId =
Convert.ToInt64(oDataSetMessages.Tables["tableA"].Columns["PrimaryKeyId"]);
Response.Write (lngPrimaryKeyId);
}
net.
i have a dataset which contains data about 2 tables (tableA and tableB).
i would like to loop through records of tableA (in the dataset) and read the
values.
i have done the following, but i know its wrong because it doesn't work...
what am i doing wrong?
thanks!
for (long i = 0; i <= oDataSetMessages.Tables["tableA"].Rows.Count; i++)
{
long lngPrimaryKeyId =
Convert.ToInt64(oDataSetMessages.Tables["tableA"].Columns["PrimaryKeyId"]);
Response.Write (lngPrimaryKeyId);
}