Last post Feb 21, 2012 01:23 AM by VISAR
Feb 20, 2012 11:41 PM|VISAR|LINK
I have a page with an updatepanel that contains record selection criteria (i.e. ZIP Code) and a datalist containing the results. The list has bound hyperlinks that open the individual items ("showitem.aspx?itemid=..."). The problem I have is when the user
views an item and they browser back, the query criteria and results gone and they have to reenter it. How do I preserve the page so they don't have to re-enter it?
Feb 21, 2012 12:03 AM|Ken Tucker|LINK
Feb 21, 2012 12:29 AM|VISAR|LINK
Thanks, Ken, but that's 2.0ville. I'm using 4.0 in VS2010. It appears I should use EnableHistory on the SM, but we have the SM on a master page and this action is going on in content pages. How do I make that work?
Feb 21, 2012 12:42 AM|VISAR|LINK
By the way, the criteria are speciified through a number of textboxes, dropdowns and checkboxes.
Feb 21, 2012 01:17 AM|MarvinYan|LINK
A simpler solution is when user browse the detail of an item , you just pop up a new window(or a layer), so the current window will keep its status.
A more complex solution is when the user browse the detail of an item , you should save current "status" (I means all the values of the controls) to somewhere(like session), when the user close and return , you can recover the "status" from saved data.
Feb 21, 2012 01:23 AM|VISAR|LINK
Thanks, Marvin. I'll go with the open a new window approach for now.