S
Scott Shuster
Hi,
I've been searching and testing and have not yet found the answer I'm
looking for.
I have an ASP.NET (vb) application with an ecommerce function. When
the user submits the page, I DON'T want them to be able to click on the
'BACK' button and get back to the form - they may inadvertently
re-submit the page and get charged again. I WANT them to get the "Page
has expired" message.
I used to be able to do something like this with the META "Expires" tag
in classic ASP, but that doesn't seem to work with .NET.
I've tried...
Page.Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
....in my Page_Load but the most they've been able to do is clear out
the form. They will not force the "Page is expried", which is what I
want.
Can someone please give me the definitive answer on manually expiring a
web form page in ASP.NET?
Thanks,
ShusteS
I've been searching and testing and have not yet found the answer I'm
looking for.
I have an ASP.NET (vb) application with an ecommerce function. When
the user submits the page, I DON'T want them to be able to click on the
'BACK' button and get back to the form - they may inadvertently
re-submit the page and get charged again. I WANT them to get the "Page
has expired" message.
I used to be able to do something like this with the META "Expires" tag
in classic ASP, but that doesn't seem to work with .NET.
I've tried...
Page.Response.Cache.SetCacheability(HttpCacheability.NoCache)
Response.Expires = 0
Response.Cache.SetNoStore()
Response.AppendHeader("Pragma", "no-cache")
....in my Page_Load but the most they've been able to do is clear out
the form. They will not force the "Page is expried", which is what I
want.
Can someone please give me the definitive answer on manually expiring a
web form page in ASP.NET?
Thanks,
ShusteS