I don't understand what you are trying to do.
Let me know if I am getting you right?
I guess your query returns multiple rows. Now in your UI you need to display 1 record at a time and on button click you need to show the next record (in ASP.NET). If this is you requirement, you need to use a
DetailsView[
^].
You can loop through the next record using
DetailsView Paging[
^].
If this is not what you want, give an explanation of your requirement.