Editing a record takes users back to the first page rather than to the page of edited record. There are 89 pages of records.
The desired outcome is for the application to take the user back to the record that was edited after saving. How can I return to page of edited record?
When redirecting to another page,please take the query parameters such as the current page and the current edit index,and when coming back,please set GridView's PageIndex and GridView's EditIndex.
CrowSol
Member
196 Points
100 Posts
How can I return to page of edited record?
Jul 09, 2012 09:34 PM|LINK
Editing a record takes users back to the first page rather than to the page of edited record. There are 89 pages of records.
The desired outcome is for the application to take the user back to the record that was edited after saving. How can I return to page of edited record?
DynamicData
www.crowsol.com
Mudasir.Khan
All-Star
15346 Points
3142 Posts
Re: How can I return to page of edited record?
Jul 10, 2012 01:44 PM|LINK
may we request you to post some code please ?
which controls are you using for editing and displaying the data?
Decker Dong ...
All-Star
118619 Points
18779 Posts
Re: How can I return to page of edited record?
Jul 11, 2012 02:09 AM|LINK
Hello CrowSol:)
When redirecting to another page,please take the query parameters such as the current page and the current edit index,and when coming back,please set GridView's PageIndex and GridView's EditIndex.
Reguards!
sjnaughton
All-Star
27308 Points
5458 Posts
MVP
Re: How can I return to page of edited record?
Jul 13, 2012 08:09 AM|LINK
Hi Star, I usually handle the Data Source Inserted or Updated event and then us this sort of code there:
and for Insert
Hope that answers you question :)
Always seeking an elegant solution.