Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations TouchToneTommy on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

DataGrid Paging and Pressing "Back"

Status
Not open for further replies.

sbushway

Programmer
Jan 27, 2003
58
US
Hi,
I have a pageable DataGrid on the left-hand-side of the my webform. When I click on an item in the DataGrid, the DataGrid disappears and textboxes appear on the right-hand-side of the screen, filled with data pertaining to the item that I clicked. Simple enough.

When the user is done viewing the textboxes, I want them to click a hyperlink that takes them back to the DataGrid (I'm trying to get them away from always pressing "Back" on their browser).

My question is this: if the user pages through the data, clicks on an item, looks at the textboxes, and wants to go back to the same "page" in the DataGrid that she was looking at before, can that be done?

I can just have the static URL in the hyperlink, but if they're on the 8th page of data, I'd hate to put them back to the first page of data. I'd like the "Back" hyperlink to take her back to the 8th page.

Thanks in advance,
Suzanne

 
Hi,
I got some help from a coworker and he helped me figure it out.

For anyone who wants to know ...
I made a 'Back' button in my form and passed the CurrentPageIndex through a Server.Transfer call. Then in my PageLoad, I set the CurrentPageIndex of my DataGrid to the variable that I passed.

Thanks,
Suzanne
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top