473,748 Members | 9,641 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

How to set when "Check for newer versions of stored pages" happens

In Internet Explorer under the tools/internet options menu on the general
tab, there is a settings button under Temporary internet files. In there the
user can specify when to "Check for newer versions of stored pages." I want
to make sure that my pages are refreshed every time they visit regardless of
this setting. Is there a way to do this? Thanks ... Ed

Feb 8 '06 #1
2 4849
Hi Ed,

You can try adding headers to your pages so that servers and browsers don't
store them, but there's no guarantee they'll honour this. Here's some code
to try:

Private Sub Page_Load _
(ByVal sender As System.Object, ByVal e As _
System.EventArg s) Handles MyBase.Load
Response.Expire s = 0
Response.AddHea der("Pragma", "no-cache")
Response.AddHea der("cache-control", "no-store")
Response.Expire sAbsolute = DateTime.Now.To String
End Sub

Ken
Microsoft MVP [ASP.NET]

"Ed Staffin" <Ed*******@disc ussions.microso ft.com> wrote in message
news:D8******** *************** ***********@mic rosoft.com...
In Internet Explorer under the tools/internet options menu on the general
tab, there is a settings button under Temporary internet files. In there
the
user can specify when to "Check for newer versions of stored pages." I
want
to make sure that my pages are refreshed every time they visit regardless
of
this setting. Is there a way to do this? Thanks ... Ed

Feb 8 '06 #2
I'm also running into the same issue. I'm beta testing a product for a client
on our server. I'm using master pages in asp.net 2.0, and a menu control
populated from sql server. My first screen is a login screen. The user logs
in, which takes her to the default.aspx page. She visits a page on the site,
and then logs off. Then she (who is an admin) logs in as someone else.
Instead of taking her to the default.aspx page, it takes her back to the page
she last visited.

The only temporary solution that works is to have her change her IE settings
so that the browser checks for newer pages "Every visit to the page." I say
temporary because I really can't have her ask her users to change their
browser settings.

I've put your code in every Page_Load of the master pages, and
Page_LoadComple te of the default.aspx page and login.aspx page, but I'm still
having the same problem.

Is there anything else that you might know of that will help? This will be a
problem in every web project using asp.net 2.0!

"Ken Cox - Microsoft MVP" wrote:
Hi Ed,

You can try adding headers to your pages so that servers and browsers don't
store them, but there's no guarantee they'll honour this. Here's some code
to try:

Private Sub Page_Load _
(ByVal sender As System.Object, ByVal e As _
System.EventArg s) Handles MyBase.Load
Response.Expire s = 0
Response.AddHea der("Pragma", "no-cache")
Response.AddHea der("cache-control", "no-store")
Response.Expire sAbsolute = DateTime.Now.To String
End Sub

Ken
Microsoft MVP [ASP.NET]

"Ed Staffin" <Ed*******@disc ussions.microso ft.com> wrote in message
news:D8******** *************** ***********@mic rosoft.com...
In Internet Explorer under the tools/internet options menu on the general
tab, there is a settings button under Temporary internet files. In there
the
user can specify when to "Check for newer versions of stored pages." I
want
to make sure that my pages are refreshed every time they visit regardless
of
this setting. Is there a way to do this? Thanks ... Ed


Apr 3 '06 #3

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

Similar topics

2
1420
by: John Baker | last post by:
Hi: Can someone answer the following questions about "Pages" a. Are they are good way to develop web based access applications? b. Is there a good manual like "Pages for Idiots" which will help in setting up a simple application? Best
6
4603
by: José Joye | last post by:
Hello, I'm currently reading the MS Developing Web applications with c# (and VB.net). In the chapter related to Error management, there is a sample about "Page-Level Error Pages" eg: In my form: ========
3
1731
by: Nils Magnus Englund | last post by:
Hi! I'm playing around with Wilson's master pages for ASP.NET 1.1. It seems ok, but I'm really struggling with the following two problems: 1) I want all .aspx pages to inherit from the same codebehind (lots of static content). Some pages have a different menu. I want to be able to, in the individual .aspx pages, be able to add e.g. <mp:content id="menu"
1
1172
by: | last post by:
I have an idea for a way to help maintain my websites, and I'm hoping someone can help me figure out how to implement it using C#, VB.NET, or elements of the .NET framework. I'd be putting this on ASP.NET pages. There's always the possibility that webpages can a) get defaced, or b) go offline for one reason or another. I was thinking that there's probably some way to generate a unique key based on the content of a page. My program...
4
2079
by: jojoba | last post by:
hello all, does anyone know if, for a 2-state checkbox, you can use the "fill in" marker from the 3-state checkbox, instead of a checkmark i just like the look of the "fill-in" instead of the checkmark Thanks, jojoba
4
1409
by: (PeteCresswell) | last post by:
"Pages" as in the web page UI to an MS Access back end. Just had a lunchtime discussion with a couple of co-workers and none of us have been able to actually use a "Page".... but our experiences were all several years ago... we tried it back then, found we couldn't do anything "Real-World" with it, and gave up. Anybody actually doing something with these things? If so, what version of MS Access?
1
1597
by: Mikewill | last post by:
I need to fix my Moodle database and someone has told me that they "used their server's CPanel and the mySQL feature to "check" then "fix" his moodle database". I dont have a cpanel and was hoping someone could help a newbie to "check" and "fix" functions in MySQL? Hope someone can help? :-)
6
8021
by: James Yang | last post by:
"bad page", especially in table, is a risk for database maintenance. The particular access attempt for corrupt blocks may not occur often, and corrupt DB2 blocks are not recognized during a database backup, corrupt blocks can remain undetected in an UDB system for a long time. The potential solution is: 1) Restore from a GOOD backup and rollforward (Recommended). The problem is backup normally is kept for 30 days so we must find the...
33
3009
by: Manikrag | last post by:
Hi Team, I have to adjust two pages which are provided by 2 diff. services based on some query string, as of now I am using iframes but could not set the height dynamically. Both the child pages can came up with any height. and iframes are useless in this case as I have to set some height or else it will take the defualt value for height property. I tried to set it thru java script and css but got the "access denied error" as java...
0
8989
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
8828
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
9367
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9319
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
8241
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
6795
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 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 a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
4599
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The last exercise I practiced was to create a LAN-to-LAN VPN between two Pfsense firewalls, by using IPSEC protocols. I succeeded, with both firewalls in the same network. But I'm wondering if it's possible to do the same thing, with 2 Pfsense firewalls...
1
3309
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
3
2213
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.