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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Return to same page in gridview from FormView 1

Status
Not open for further replies.

pkailas

Programmer
Jun 10, 2002
555
US
I have a grid view with a button to send that record to a FormView page directly into Edit mode.

On there there is the Update and Cancel buttons.

How can I configure the Cancel button to take me back to the same spot in the Gridview that I came from? I know I can make a link to take me back to the aspx page, but if there are hundreds of rows, I want to go to the same page (i have paging enabled) so the users don't need to find their spot all over again.

_______
I love small animals, especially with a good brown gravy....
 
I would add the page as a parameter in the querystring. Then you can read that value on post back and set the gridview to that page.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top