Solved

ASP.NET GridView control - return to previous page from detail page when paging is active.

Posted on 2011-03-11
1
466 Views
Last Modified: 2012-05-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.
0
Comment
Question by:JosephEricDavis
1 Comment
 
LVL 7

Accepted Solution

by:
foobarr earned 500 total points
ID: 35112200
Before the user click the details link to open up the details page, what if you stored the current datagrid datasource in session.  

This way when the user goes back to the page you can just load back up the datagrid datasource.
0

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

IntroductionWhile developing web applications, a single page might contain many regions and each region might contain many number of controls with the capability to perform  postback. Many times you might need to perform some action on an ASP.NET po…
Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…
A short tutorial showing how to set up an email signature in Outlook on the Web (previously known as OWA). For free email signatures designs, visit https://www.mail-signatures.com/articles/signature-templates/?sts=6651 If you want to manage em…

713 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question