Solved

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

Posted on 2011-03-11
1
472 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
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

Free Tool: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Introduction This article shows how to use the open source plupload control to upload multiple images. The images are resized on the client side before uploading and the upload is done in chunks. Background I had to provide a way for user…
Entity Framework is a powerful tool to help you interact with the DataBase but still doesn't help much when we have a Stored Procedure that returns more than one resultset. The solution takes some of out-of-the-box thinking; read on!
How to Install VMware Tools in Red Hat Enterprise Linux 6.4 (RHEL 6.4) Step-by-Step Tutorial

734 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