Returning to last viewed List page after insert/edit with ASP.NET Dynamic Data
Posted
by Pat James
on Stack Overflow
See other posts from Stack Overflow
or by Pat James
Published on 2010-03-30T15:11:52Z
Indexed on
2010/03/30
15:13 UTC
Read the original article
Hit count: 596
ASP.NET
|dynamic-data
With a pretty standard Dynamic Data site, when the user edits or inserts a new item and saves, the page does a Response.Redirect(table.ListActionPath), which takes the user back to page 1 of the table.
If they were editing an item on page 10 (or whatever) and want to edit the next item on that page, they have to remember the page number and navigate back to it.
What's the best way to return the user to the list page they last viewed?
I can conceive of some solutions using cookies, session state, or query string values to retain this state and making my own Page Template to incorporate it, but I can't help thinking this must be something that was considered when Dynamic Data was created, and there must be something simpler or built-in to the framework that I'm missing here.
© Stack Overflow or respective owner