expire page in asp.net2.0
Hi all,
Can anybody pleased tell me how to let a page expire in asp.net2.0 when the user presses the back button?????
And if he/she press the refresh button he/she will be redirected to the last page that he/she was in????
Please guys :thumb:
thanx in advance
Regards
jameee
Re: expire page in asp.net2.0
hi guys,
please no one knows the solution for that :rolleyes:
regards,
Re: expire page in asp.net2.0
At the top of your page,
<%@ OutputCache location="none" %>
Re: expire page in asp.net2.0
Thank you mendhak :thumb:
What about after refreshing the page??? How to make it redirected to the last page you were in???
Regards,
Re: expire page in asp.net2.0
A refresh is treated as a re-request of the page. Perhaps you should look for an alternate mechanism to accomplish what you want.
What is it you want to accomplish here, give background information.
Re: expire page in asp.net2.0
Thank you mendhak, , I very much appreciate you.....
okay regarding what i want,,,
lets say that we have two pages; page A and Page B. In page A you select some stuff and press the button that redirect you to page B. From page B you press the Back button and it takes you tp the expired page.
What i want is that while you are on the expired page and you click the refesh button it takes you to page A.
i hope that you got my point dear....
Regards
Re: expire page in asp.net2.0
This is where browser behavior comes into play. A refresh should load up the page once again, so you should get the behavior you want. You have described what you wanted. What is happening right now when you do this?
Re: expire page in asp.net2.0
it will take me to page A and let me again select the required field and then proceed to page B
Re: expire page in asp.net2.0
Which is what you wanted.