Solved

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

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

Threat Intelligence Starter Resources

Integrating threat intelligence can be challenging, and not all companies are ready. These resources can help you build awareness and prepare for defense.

Join & Write a Comment

Suggested Solutions

Just a quick little trick I learned recently.  Now that I'm using jQuery with abandon in my asp.net applications, I have grown tired of the following syntax:      (CODE) I suppose it just offends my sense of decency to put inline VBScript on a…
Many of us here at EE write code. Many of us write exceptional code; just as many of us write exception-prone code. As we all should know, exceptions are a mechanism for handling errors which are typically out of our control. From database errors, t…
Internet Business Fax to Email Made Easy - With eFax Corporate (http://www.enterprise.efax.com), you'll receive a dedicated online fax number, which is used the same way as a typical analog fax number. You'll receive secure faxes in your email, fr…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…

758 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

18 Experts available now in Live!

Get 1:1 Help Now