steven scaife
10/10/2006 8:32:00 AM
A quick question, I am trying to get a page in a site i am developing to stop
caching I have tried adding the OutPutCache Location="none" tag to the page
and the HTML tags that handle browser caching but these don't work as
expected.
I have a page where they click on a product from the navigational menu, it
then stores the dataset in a session variable because some products have more
than 5 products so a paging routine is implemented, however if they use there
back button onthe browser and look at a previous product they have clicked on
then the session variable has been overwritten by the current product they
looked at. If there is only one page for the current product but 5 pages for
the previous product then it errors because the currentpageindex is greater
than the pagecount, if there is more than one page then it pages through the
wrong set of products. I need to stop them from being able to look at the
previous product, i am assuming that if the page shows a message that the
content is no longer valid and they refresh the content it should pull the
right data through, it passes the product ID through the querystring so it
should be able to find the right data.
The only thing i can think of is javascript to clear the history when the
user views a product page, the only problem with this is a lot of web users
don't like that and I want to make the user experience as friendly as
possible.
thanks in advance for any suggestions