473,386 Members | 1,679 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

DetailViewHoldPagePostion

gh
I have a detailview with a link, the user clicks to open another web
page from. When the user closes web page 2 and I redirect back to the
first page, the detailview resets the page index to the first record. I
would like to have the detailview page index stay where it was, before
the user opened up the second web page.

The second web page is only opened up from the page with detailview and
will always return to this page. How can I accomplish this? I am using
..net 2.0 and C#.

Thanks
Nov 27 '07 #1
1 886
Store the current PageIndex in Session, and check for and retrieve it in
Page_Load of the first page.

--Peter
"Inside every large program, there is a small program trying to get out."
http://www.eggheadcafe.com
http://petesbloggerama.blogspot.com
http://www.blogmetafinder.com

"gh" wrote:
I have a detailview with a link, the user clicks to open another web
page from. When the user closes web page 2 and I redirect back to the
first page, the detailview resets the page index to the first record. I
would like to have the detailview page index stay where it was, before
the user opened up the second web page.

The second web page is only opened up from the page with detailview and
will always return to this page. How can I accomplish this? I am using
..net 2.0 and C#.

Thanks
Nov 27 '07 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.