Solved

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

Posted on 2011-03-11
1
449 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

DevOps Toolchain Recommendations

Read this Gartner Research Note and discover how your IT organization can automate and optimize DevOps processes using a toolchain architecture.

Question has a verified solution.

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

For those of you who don't follow the news, or just happen to live under rocks, Microsoft Research released a beta SDK (http://www.microsoft.com/en-us/download/details.aspx?id=27876) for the Xbox 360 Kinect. If you don't know what a Kinect is (http:…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
This is used to tweak the memory usage for your computer, it is used for servers more so than workstations but just be careful editing registry settings as it may cause irreversible results. I hold no responsibility for anything you do to the regist…
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now