Hi,
I have an application where I need to ensure that users do not use browser
navigation buttons. I specifically warn the users, and in every page set the
folllowing:
Me.Response.Cache.SetNoStore()
Me.Response.Cache.SetNoServerCaching()
Me.Response.Cache.SetCacheability(System.Web.HttpC acheability.NoCache)
and issue a GUID for every page. Then on page load I check whether the GUID
passed from the last page is the same as in Session, and display an error
message othewise. All works - in development.
However, in production (the site is deployed to a web hosting company),
using navigation buttons in IE do not force re-load from the server, and
therefore do not trigger the error. It works without any hiccups with
Netscape & Mozilla, both in development and production.
Any help on how to force IE to re-load the page, or why
Response.Cache.SetNoStore() stores page in IE history is greatly appreciated. 2 10000
put a unique/random parameter in the querystring for each page call.
It will be interpreted as a new address and served fresh.
"Sergey Poberezovskiy" <Se*****************@discussions.microsoft.comwrot e in message
news:3E**********************************@microsof t.com...
Hi,
I have an application where I need to ensure that users do not use browser
navigation buttons. I specifically warn the users, and in every page set the
folllowing:
Me.Response.Cache.SetNoStore()
Me.Response.Cache.SetNoServerCaching()
Me.Response.Cache.SetCacheability(System.Web.HttpC acheability.NoCache)
and issue a GUID for every page. Then on page load I check whether the GUID
passed from the last page is the same as in Session, and display an error
message othewise. All works - in development.
However, in production (the site is deployed to a web hosting company),
using navigation buttons in IE do not force re-load from the server, and
therefore do not trigger the error. It works without any hiccups with
Netscape & Mozilla, both in development and production.
Any help on how to force IE to re-load the page, or why
Response.Cache.SetNoStore() stores page in IE history is greatly appreciated.
Jon,
Thank you for your reply. That was exactly what I did: I put the generated
GUID into QueryString to differentiate between pages. As I said, it did work
for me in development for IE as well as other browsers - it did not work (for
a couple of days) after I deployed the site to production - to the external
ISP.
Anyhow, now the problem disappeared - works as expected in IE (in
production) as well. I just do not like when things like this happen - when
problem appears out of nowhere and goes without any visible reason. Wierd...
"Jon Paal" wrote:
put a unique/random parameter in the querystring for each page call.
It will be interpreted as a new address and served fresh.
"Sergey Poberezovskiy" <Se*****************@discussions.microsoft.comwrot e in message
news:3E**********************************@microsof t.com...
Hi,
I have an application where I need to ensure that users do not use browser
navigation buttons. I specifically warn the users, and in every page set the
folllowing:
Me.Response.Cache.SetNoStore()
Me.Response.Cache.SetNoServerCaching()
Me.Response.Cache.SetCacheability(System.Web.HttpC acheability.NoCache)
and issue a GUID for every page. Then on page load I check whether the GUID
passed from the last page is the same as in Session, and display an error
message othewise. All works - in development.
However, in production (the site is deployed to a web hosting company),
using navigation buttons in IE do not force re-load from the server, and
therefore do not trigger the error. It works without any hiccups with
Netscape & Mozilla, both in development and production.
Any help on how to force IE to re-load the page, or why
Response.Cache.SetNoStore() stores page in IE history is greatly appreciated.
This thread has been closed and replies have been disabled. Please start a new discussion. Similar topics
by: John Spiegel |
last post by:
Hi all,
I think this is a longshot, but is there a technique for programmatically
run a webpage?
Let's say one of our vendors has a page that we go to daily to pick up some
files. Each time,...
|
by: Jay |
last post by:
I'm wondering if anyone has even encountered a control or other scripting
that will automatically rotate the rows of a datagrid... I am in the process
of building an asp.net application that will...
|
by: Brian McClellan |
last post by:
Just wondering if anyone has a simple example of creating a gridview
completely programmatically, i'm not doing anything terribly sophisticated.
When creating the gridview declaratively evertying...
|
by: Joey |
last post by:
Hello,
I have tried to programmatically set the theme for my master page by
putting code in a "Page_PreInit" fuction in the master page's code
behind. However, when I set a breakpoint there and...
|
by: Kevin Frey |
last post by:
We have a data-centric application where all of the "layout" for each data
centric page is to be codified (ie. it is expressed in C# code rather than
being expressed declaratively). This...
|
by: camphor |
last post by:
hi all,
I have a webpage with just images and am using a liquid layout for my css, go to http://www.christinebec.com/About CB/selected_editorials.htm to see what I am talking about, after the...
|
by: Wayne Deleer |
last post by:
Hi All,
I'm currently working on a project, and I've come to a part where I
want to add data to a GridView. BUT, I want to do it programmatically,
with alot of control over everything. In my...
|
by: Ken Fine |
last post by:
I'm interested in programmatically manipulating groups of ASP.NET controls
by type. Can someone suggest code for the following?
Loop through, say, all label controls on a page, and assigning a...
|
by: Ken Fine |
last post by:
I am using ASP.NET's CreateUserWizard control. I want to force the visitor
to use a username and e-mail address that I am providing in programming, and
I do not want the visitor to be able to edit...
|
by: =?Utf-8?B?UGV0ZXIgSw==?= |
last post by:
I am working with Visual Studio or alternately with Expression Web. I need
to create about 50 aspx pages with about 1200 thumbnali images, typically
arranged in three to four groups per page,...
|
by: ryjfgjl |
last post by:
ExcelToDatabase: batch import excel into database automatically...
|
by: isladogs |
last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM).
In this month's session, we are pleased to welcome back...
|
by: Vimpel783 |
last post by:
Hello!
Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
|
by: jfyes |
last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
|
by: PapaRatzi |
last post by:
Hello,
I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
|
by: CloudSolutions |
last post by:
Introduction:
For many beginners and individual users, requiring a credit card and email registration may pose a barrier when starting to use cloud servers. However, some cloud server providers now...
|
by: Defcon1945 |
last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
|
by: af34tf |
last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
|
by: isladogs |
last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM).
In this session, we are pleased to welcome former...
| |