ASP.NET - First, Previous, Next, Last record

  • Thread starter Thread starter Morys Kenworthy
  • Start date Start date
M

Morys Kenworthy

Can somebody give me a hand with this?

How do I move the pointer to the first record, previous record, next record or last record using ASP.NET? Some sample code would be appreciated.

Thank you in advance
 
It all depends upon what classes you're using to manipulate the data.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.

Can somebody give me a hand with this?

How do I move the pointer to the first record, previous record, next record
or last record using ASP.NET? Some sample code would be appreciated.

Thank you in advance
 
Can you give me an example using any class that you can suggest? I am new in
this and anything will help. Thanks again.
 
Take a DataTable, for instance. It has a Collection of Rows. The first one
is index 0 in the Collection. The last is one less than the Count of the
Collection.

A DataReader, on the other hand, is a forward-only cursor. You call the
Read() method to get the next row. So, you can't navigate backwards and
forwards through it.

A DataSet has a collection of DataTables, so you need to reference both the
DataTable in the Collection, and the row in it.

--
HTH,
Kevin Spencer
..Net Developer
Microsoft MVP
Big things are made up
of lots of little things.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Back
Top