473,320 Members | 2,098 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

ASP.Net 2.0 programmatically forcing page re-load from the server

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.

Oct 8 '06 #1
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.

Oct 9 '06 #2
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.


Oct 9 '06 #3

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

3
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,...
1
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...
5
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...
1
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...
0
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...
1
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...
2
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...
3
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...
3
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...
11
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,...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
1
isladogs
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...
0
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...
0
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...
1
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)...
1
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...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
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
0
isladogs
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...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.