ASP.NET GridView control - return to previous page from detail page when paging is active.
Posted on 2011-03-11
I've got a page containing a gridview control with paging. Each record in the gridview allows the user to view a details page for that record. When the user is done viewing the details page I need them to return to the previous page which includes returning to the same page of the gridview they were on when they viewed the detail page. This also includes sorting and filtering and number of records shown per page.
I realize that there are many different situations and ways in which a gridview can be implemented and that I'm not providing too much detail. I'm interested in knowing the best practice for making something like this happen or a generalized approach.
Any input on this would be greatly appreciated.