Click here to Skip to main content
15,308,835 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Hi, I have account audit search page that display list of records in grid view. for example - name,Id,action etc.

When I click on any row in grid view the details of that row I am displaying in another aspx page as popup.I have my grid view in audit search page and showing details in detailsModal page.

When I am clicking on row in grid view I am passing rowId to detailsmodal page and in details modal page based on rowId I am fetching the data and showing it.

for example - window.showModalDialog("DetailsModal.aspx?RowId=" + rowId, '', modalSize);

Now I want to add next and previous button on detailsModal page so when I click on next button the next row of gridview should be displayed in detailsModal page and when I click on previous button the previous row of gridview should be displayed.

What I have tried:

Please suggest. It will be nice if I can get some sample code as example in solution.
Posted
Updated 10-Jan-19 8:05am

Well you could pass to the popup a list of the IDs from the grid view, search that list for the next item and look up the data
   

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month


CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900