My Index action for a controller takes a page parameter like so:
/Organizations/Index?page=5
Which is used to limit the number of objects displayed. If they choose to “edit” one of those objects after they are finished I would like to return with the same values as before they began editing (e.g. be on the same “page” of the list).
My edit url ends up looking like this:
/Organizations/Edit/487
How do I persist the original page value?
Thanks!
To persist data between calls you can use
If you want to access the route data, you can use the controller context:
“action” is the name of the route parameter.