Answered by:
Restoring filtered list pages after returning from an edit/insert page

Question
-
User-1336852631 posted
Does anyone have a solution for this that works with DD4? The JavaScript solution referred to in http://stackoverflow.com/questions/2546315/returning-to-last-viewed-list-page-after-insert-edit-with-asp-net-dynamic-data works in returning to the previous page but the page won't show any changes made in an Edit.aspx page (I.e. it's out of date). Steves solution refers to the FilterUserControl that no longer exists unless I'm mistaken.Saturday, July 14, 2012 2:42 PM
Answers
-
User-330204900 posted
Hi Biga, I have two articels on my blog here:
AJAX History in a Dynamic Data Website
Filter History for Dynamic Data 4
Take your pick :)
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, July 16, 2012 7:34 AM
All replies
-
User3866881 posted
I.e. it's out of dateError or exception? What codes have you written?
Sunday, July 15, 2012 9:05 PM -
User-1336852631 posted
Hi,
I added the following to the Edit.aspx.cs page_load method:
((LinkButton)(FormView1.FindControl("UpdateButton"))).OnClientClick = "javascript: history.go(-1); return true"; ((LinkButton)(FormView1.FindControl("CancelButton"))).OnClientClick = "javascript: history.go(-1); return false";
However it seems to cause issues in that sometimes clicking the update button doesn't result in the data getting updated.
Monday, July 16, 2012 4:24 AM -
User-1336852631 posted
I've just found this article on Steve Naughtons site that looks like it will do what I want:
http://csharpbits.notaclue.net/2010/12/filter-history-for-dynamic-data-4.html
Monday, July 16, 2012 5:02 AM -
User-330204900 posted
Hi Biga, I have two articels on my blog here:
AJAX History in a Dynamic Data Website
Filter History for Dynamic Data 4
Take your pick :)
- Marked as answer by Anonymous Thursday, October 7, 2021 12:00 AM
Monday, July 16, 2012 7:34 AM -
User-1336852631 posted
Thanks Steve,
The first link is the one I was referring to in the original question - FilterUserControl doesn't exist anymore does it ? - unless I'm missing something.
The second link is the one I referred to in my last post in this thread - this looks good and I'm adding that to my project now.
Monday, July 16, 2012 11:37 AM -
User-330204900 posted
Yes that is for .Net 3.5 J you will need to look at the second one for .net 4 and above
Monday, July 16, 2012 11:50 AM