There is no "best way." There are more than one container for database
records in .Net. There is the DataReader, a forward-only, read-only
connected "cursor" to a result set. There is a DataTable, which is a
serializable disconnected record set. There is a DataSet, which is a
container for DataTables.
I would advise you to familiarize yourself with these classes, and what each
of them is best used for, as well as the various ways you can use them.
--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
I get paid good money to
solve puzzles for a living
"NathanV" <Na*****@discussions.microsoft.com> wrote in message
news:10**********************************@microsof t.com...
What's the best way to loop through records in ASP.NET. For example if I
want to build an array off of the table or use the values in on a
non-presentational way?
Thanks,
Nathan