I'm having a search page with several search criteria with a search button, Whenever user selects search criteria and clicks on search button, results are displayed in new page SearchResults.aspx in a gridview with Print Preview button.
When i click on print preview button for the first time, gridview results are displayed properly in a new window for print. If we again goto search page and searches with different search criteria, then again a new search results page will be displayed in
the gridview with same print preview button. Now when i click on this print preview button i can see the same records in a new window,But the problem is when i goto previous search results page and click on print preview page it is displaying new records instead
of showing existing records..
How can i handle this situation? I dont want to change the functionality, just need a fix to overcome this session overlap problem..
If you want to persist result of 1st search, may make use of session or another media to store result set.
Hi,
Thanks for your reply,
If i maintain session for different searches, How can i know a particular search and how can i display the exact results? I hope my question is clear..How can i validate the session??
Maybe you want to persist the search result in your scenery. If so, you may need to store the every search result in different session. Then the session won't be rewrited.
Marked as answer by Qi Wu - MSFT on Apr 17, 2012 11:38 AM
pavanpuligan...
Member
78 Points
292 Posts
Session Overlap between pages
Apr 09, 2012 06:46 AM|LINK
Hi All,
I'm having a search page with several search criteria with a search button, Whenever user selects search criteria and clicks on search button, results are displayed in new page SearchResults.aspx in a gridview with Print Preview button.
When i click on print preview button for the first time, gridview results are displayed properly in a new window for print. If we again goto search page and searches with different search criteria, then again a new search results page will be displayed in the gridview with same print preview button. Now when i click on this print preview button i can see the same records in a new window,But the problem is when i goto previous search results page and click on print preview page it is displaying new records instead of showing existing records..
How can i handle this situation? I dont want to change the functionality, just need a fix to overcome this session overlap problem..
Thanks,
Time's so short, you cant make a debug!!
MS.NET10
Member
196 Points
55 Posts
Re: Session Overlap between pages
Apr 10, 2012 11:54 AM|LINK
yes this is defaulty functionality of .NET.
If you want to persist result of 1st search, may make use of session or another media to store result set.
pavanpuligan...
Member
78 Points
292 Posts
Re: Session Overlap between pages
Apr 10, 2012 12:35 PM|LINK
Hi,
Thanks for your reply,
If i maintain session for different searches, How can i know a particular search and how can i display the exact results? I hope my question is clear..How can i validate the session??
Time's so short, you cant make a debug!!
Richey
Contributor
3816 Points
431 Posts
Re: Session Overlap between pages
Apr 15, 2012 02:44 PM|LINK
Hi,
Maybe you want to persist the search result in your scenery. If so, you may need to store the every search result in different session. Then the session won't be rewrited.