Links to Prev / Next rows in the Details page

R

Rajan Moorjaney

I have a datagrid dgQueryResults with a hyperlink column which links to the details screen.

<asp:HyperLinkColumn Visible="False" Text="View Details"
DataNavigateUrlField="mtf_id"
DataNavigateUrlFormatString="MTFDetails.aspx?mtf_id={0}">

In the details MTFDetails.aspx page - I need to have 'Prev' & 'Next' links which will take the user to the previous or next record listed in the datagrid.

I would appreciate suggestion on scripting for the 'Previous' & 'Next' hyperlink/linkbuttons.

Do I need to save the DataTable/DataView - that fills the datagrid in the refering page - into a session variable, and use that to go to the previous or next record, or is there a better approach.

Thank you.
 

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

Staff online

Members online

Forum statistics

Threads
473,766
Messages
2,569,569
Members
45,045
Latest member
DRCM

Latest Threads

Top