forced refresh in ASP 
Author Message
 forced refresh in ASP

forced refresh in ASP

HELO
I have a problem with my ASP pages, i have made a simple webshop where i put
items in a virtuel shopping cart , the shopping cart is a table stored in a
session variable with info about each item. when i put items in the cart and
go to a page that shows the contents in a html table the table dont alway
reflect the changes of items that the user made, the user need to push the
reload button on the browser to get at updated view of the shopping cart...
is it a method that forces the page to be fetched from the server and not
the cache in the browser?
I have found refresh thing in the MSDN libary that follows my VID 6.0 but i
don understand what to use as the object  ( i have tried  : thisform, page,
document, thispage )
I quote:
Refresh Method

----------------------------------------------------------------------------
----

Description

  Reloads the page currently displayed in the WebBrowser control.

Syntax
  object.Refresh

        Part Description
        object Required. An object expression that evaluates to an object in
the Applies To list.

Remarks

  The WebBrowser control and Internet Explorer application store Web pages
from recently visited sites in cached memory on the user's hard disk. This
saves time when revisiting a site by reloading the page from the local disk
rather than downloading it again across the network from the remote HTTP
server. You can force the WebBrowser control or Internet Explorer
application to redownload a page by using the Refresh or Refresh2 method to
ensure that you are viewing the most current version of the page. Also, you
can disable the cache from being used by specifying the navNoReadFromCache
and navNoWriteToCache flags when calling the Navigate or Navigate2 method.

Applies To

  InternetExplorer, WebBrowser

  ---------------------
  and i qoute another method:

  Refresh2 Method

----------------------------------------------------------------------------
--

  Description

    Reloads the page currently displayed in the WebBrowser control. Unlike
the Refresh method, this method contains a parameter that specifies the
refresh level.

  Syntax
    object.Refresh2 [Level]

          Part Description
          object Required. An object expression that evaluates to an object
in the Applies To list.
          Level Optional. A constant or value that specifies the refresh
level. It can be one of the following constants or values. Constant Value
Meaning
                REFRESH_NORMAL 0 Perform a lightweight refresh that does not
include sending the HTTP "pragma:nocache" header to the server.
                REFRESH_IFEXPIRED 1 Perform a lightweight refresh if the
page has expired.
                REFRESH_COMPLETELY 3 Perform a full refresh that includes
sending a "pragma:nocache" header to the server (HTTP URLs only).

  Remarks

    The "pragma:nocache" header tells the server not to return a cached
copy. This ensures that the information is as fresh as possible. Browsers
typically send this header when the user selects refresh, but the header can
cause problems for some servers.

  Applies To

    InternetExplorer, WebBrowser

  have you ever had the same problem

Per-Egil



Sat, 28 Jul 2001 03:00:00 GMT  
 
 [ 1 post ] 

 Relevant Pages 

1. Force Element's Display to Refresh

2. Can I force a refresh of a page?

3. Forcing page reload / refresh

4. Forcing page reload / refresh

5. Force an Element's Display to Refresh

6. how can I force a refresh

7. forced page refresh?

8. Newbie - How to force refresh of Desktop

9. Force the IE GUI to refresh while vbscript routines are executing

10. Force an Element's Display to Refresh

11. Forcing Page Refresh

12. Force page refresh on load?

 

 
Powered by phpBB® Forum Software