Professional Web Applications Themes

Refreshing a Page - ASP

I have a menu that calls a specific asp page and passes a variable data1page.asp?year=2001 where the value of the year variable is determined in code. This works fine the first 2 times I call the page but after the second call, all future calls get the data for the same year as in the 2nd call. If I click on "Refresh" and then try a different call, it works as expected. I suspect the I am getting a cached page (why?). How can I execute a call with a forced refresh and/or how can I prevent the called page ...

  1. #1

    Default Refreshing a Page

    I have a menu that calls a specific asp page and passes a variable

    data1page.asp?year=2001

    where the value of the year variable is determined in code.

    This works fine the first 2 times I call the page but after the second call,
    all future calls get the data for the same year as in the 2nd call. If I
    click on "Refresh" and then try a different call, it works as expected. I
    suspect the I am getting a cached page (why?).

    How can I execute a call with a forced refresh and/or how can I prevent the
    called page from being cached?

    --
    ------------------------------------
    Wayne Wengert
    [email]waynewengert.org[/email]


    Wayne Wengert Guest

  2. #2

    Default Re: Refreshing a Page

    go into iis, right-click on the website. Take properties.
    Click on the home directory tab.
    Click the configuration button.
    on the mappings tab, uncheck the "cache isapi extensions"




    "Wayne Wengert" <waynewengert.org> wrote in message
    news:u3m29f%23dDHA.1888TK2MSFTNGP12.phx.gbl...
    > I have a menu that calls a specific asp page and passes a variable
    >
    > data1page.asp?year=2001
    >
    > where the value of the year variable is determined in code.
    >
    > This works fine the first 2 times I call the page but after the second
    call,
    > all future calls get the data for the same year as in the 2nd call. If I
    > click on "Refresh" and then try a different call, it works as expected. I
    > suspect the I am getting a cached page (why?).
    >
    > How can I execute a call with a forced refresh and/or how can I prevent
    the
    > called page from being cached?
    >
    > --
    > ------------------------------------
    > Wayne Wengert
    > [email]waynewengert.org[/email]
    >
    >

    Bite My Bubbles Guest

  3. #3

    Default Re: Refreshing a Page

    I don't have root access to IIS. I just buy Windows Web service from an ISP

    Wayne

    "Bite My Bubbles" <bmbmybubbles.com> wrote in message
    news:OxQpKo%23dDHA.2300TK2MSFTNGP10.phx.gbl...
    > go into iis, right-click on the website. Take properties.
    > Click on the home directory tab.
    > Click the configuration button.
    > on the mappings tab, uncheck the "cache isapi extensions"
    >
    >
    >
    >
    > "Wayne Wengert" <waynewengert.org> wrote in message
    > news:u3m29f%23dDHA.1888TK2MSFTNGP12.phx.gbl...
    > > I have a menu that calls a specific asp page and passes a variable
    > >
    > > data1page.asp?year=2001
    > >
    > > where the value of the year variable is determined in code.
    > >
    > > This works fine the first 2 times I call the page but after the second
    > call,
    > > all future calls get the data for the same year as in the 2nd call. If I
    > > click on "Refresh" and then try a different call, it works as expected.
    I
    > > suspect the I am getting a cached page (why?).
    > >
    > > How can I execute a call with a forced refresh and/or how can I prevent
    > the
    > > called page from being cached?
    > >
    > > --
    > > ------------------------------------
    > > Wayne Wengert
    > > [email]waynewengert.org[/email]
    > >
    > >
    >
    >

    Wayne Wengert Guest

  4. #4

    Default Re: Refreshing a Page

    Try this:
    [url]http://www.aspfaq.com/show.asp?id=2022[/url]

    or this may be your ISPs problem

    [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;332075[/url]



    "Wayne Wengert" <waynewengert.org> wrote in message
    news:%23EXAH1%23dDHA.2432TK2MSFTNGP11.phx.gbl...
    > I don't have root access to IIS. I just buy Windows Web service from an
    ISP
    >
    > Wayne
    >
    > "Bite My Bubbles" <bmbmybubbles.com> wrote in message
    > news:OxQpKo%23dDHA.2300TK2MSFTNGP10.phx.gbl...
    > > go into iis, right-click on the website. Take properties.
    > > Click on the home directory tab.
    > > Click the configuration button.
    > > on the mappings tab, uncheck the "cache isapi extensions"
    > >
    > >
    > >
    > >
    > > "Wayne Wengert" <waynewengert.org> wrote in message
    > > news:u3m29f%23dDHA.1888TK2MSFTNGP12.phx.gbl...
    > > > I have a menu that calls a specific asp page and passes a variable
    > > >
    > > > data1page.asp?year=2001
    > > >
    > > > where the value of the year variable is determined in code.
    > > >
    > > > This works fine the first 2 times I call the page but after the second
    > > call,
    > > > all future calls get the data for the same year as in the 2nd call. If
    I
    > > > click on "Refresh" and then try a different call, it works as
    expected.
    > I
    > > > suspect the I am getting a cached page (why?).
    > > >
    > > > How can I execute a call with a forced refresh and/or how can I
    prevent
    > > the
    > > > called page from being cached?
    > > >
    > > > --
    > > > ------------------------------------
    > > > Wayne Wengert
    > > > [email]waynewengert.org[/email]
    > > >
    > > >
    > >
    > >
    >
    >

    Bite My Bubbles Guest

  5. #5

    Default Re: Refreshing a Page

    Thanks for the pointers. It turns out that the code to immediately expire
    the page didn't help. I contacted my ISP on the other hint but am not
    optimistic they will change anything.

    I appreciate the suggestions

    Wayne

    "Bite My Bubbles" <bmbmybubbles.com> wrote in message
    news:unNeK8%23dDHA.2436TK2MSFTNGP11.phx.gbl...
    > Try this:
    > [url]http://www.aspfaq.com/show.asp?id=2022[/url]
    >
    > or this may be your ISPs problem
    >
    > [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;332075[/url]
    >
    >
    >
    > "Wayne Wengert" <waynewengert.org> wrote in message
    > news:%23EXAH1%23dDHA.2432TK2MSFTNGP11.phx.gbl...
    > > I don't have root access to IIS. I just buy Windows Web service from an
    > ISP
    > >
    > > Wayne
    > >
    > > "Bite My Bubbles" <bmbmybubbles.com> wrote in message
    > > news:OxQpKo%23dDHA.2300TK2MSFTNGP10.phx.gbl...
    > > > go into iis, right-click on the website. Take properties.
    > > > Click on the home directory tab.
    > > > Click the configuration button.
    > > > on the mappings tab, uncheck the "cache isapi extensions"
    > > >
    > > >
    > > >
    > > >
    > > > "Wayne Wengert" <waynewengert.org> wrote in message
    > > > news:u3m29f%23dDHA.1888TK2MSFTNGP12.phx.gbl...
    > > > > I have a menu that calls a specific asp page and passes a variable
    > > > >
    > > > > data1page.asp?year=2001
    > > > >
    > > > > where the value of the year variable is determined in code.
    > > > >
    > > > > This works fine the first 2 times I call the page but after the
    second
    > > > call,
    > > > > all future calls get the data for the same year as in the 2nd call.
    If
    > I
    > > > > click on "Refresh" and then try a different call, it works as
    > expected.
    > > I
    > > > > suspect the I am getting a cached page (why?).
    > > > >
    > > > > How can I execute a call with a forced refresh and/or how can I
    > prevent
    > > > the
    > > > > called page from being cached?
    > > > >
    > > > > --
    > > > > ------------------------------------
    > > > > Wayne Wengert
    > > > > [email]waynewengert.org[/email]
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Wayne Wengert Guest

  6. #6

    Default Re: Refreshing a Page

    Hi Wayne,

    I think bmb's suggestion should work. How about putting this in the asp pag:

    <META HTTP-EQUIV="Pragma" CONTENT="no-cache">

    Does it work?

    Regards,

    Felix Wu
    =======
    This posting is provided "AS IS" with no warranties, and confers no rights.



    --------------------
    >From: "Wayne Wengert" <waynewengert.org>
    >References: <u3m29f#dDHA.1888TK2MSFTNGP12.phx.gbl>
    <OxQpKo#dDHA.2300TK2MSFTNGP10.phx.gbl>
    <#EXAH1#dDHA.2432TK2MSFTNGP11.phx.gbl>
    <unNeK8#dDHA.2436TK2MSFTNGP11.phx.gbl>
    >Subject: Re: Refreshing a Page
    >Date: Thu, 11 Sep 2003 10:23:01 -0600
    >Lines: 74
    >X-Priority: 3
    >X-MSMail-Priority: Normal
    >X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
    >X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
    >Message-ID: <#JA1$DIeDHA.2304TK2MSFTNGP11.phx.gbl>
    >Newsgroups: microsoft.public.inetserver.asp.general
    >NNTP-Posting-Host: skybeam143.skybeam.frii.net 216.17.229.143
    >Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP11.phx.gbl
    >Xref: cpmsftngxa06.phx.gbl microsoft.public.inetserver.asp.general:252378
    >X-Tomcat-NG: microsoft.public.inetserver.asp.general
    >
    >Thanks for the pointers. It turns out that the code to immediately expire
    >the page didn't help. I contacted my ISP on the other hint but am not
    >optimistic they will change anything.
    >
    >I appreciate the suggestions
    >
    >Wayne
    >
    >"Bite My Bubbles" <bmbmybubbles.com> wrote in message
    >news:unNeK8%23dDHA.2436TK2MSFTNGP11.phx.gbl...
    >> Try this:
    >> [url]http://www.aspfaq.com/show.asp?id=2022[/url]
    >>
    >> or this may be your ISPs problem
    >>
    >> [url]http://support.microsoft.com/default.aspx?scid=kb;en-us;332075[/url]
    >>
    >>
    >>
    >> "Wayne Wengert" <waynewengert.org> wrote in message
    >> news:%23EXAH1%23dDHA.2432TK2MSFTNGP11.phx.gbl...
    >> > I don't have root access to IIS. I just buy Windows Web service from an
    >> ISP
    >> >
    >> > Wayne
    >> >
    >> > "Bite My Bubbles" <bmbmybubbles.com> wrote in message
    >> > news:OxQpKo%23dDHA.2300TK2MSFTNGP10.phx.gbl...
    >> > > go into iis, right-click on the website. Take properties.
    >> > > Click on the home directory tab.
    >> > > Click the configuration button.
    >> > > on the mappings tab, uncheck the "cache isapi extensions"
    >> > >
    >> > >
    >> > >
    >> > >
    >> > > "Wayne Wengert" <waynewengert.org> wrote in message
    >> > > news:u3m29f%23dDHA.1888TK2MSFTNGP12.phx.gbl...
    >> > > > I have a menu that calls a specific asp page and passes a variable
    >> > > >
    >> > > > data1page.asp?year=2001
    >> > > >
    >> > > > where the value of the year variable is determined in code.
    >> > > >
    >> > > > This works fine the first 2 times I call the page but after the
    >second
    >> > > call,
    >> > > > all future calls get the data for the same year as in the 2nd call.
    >If
    >> I
    >> > > > click on "Refresh" and then try a different call, it works as
    >> expected.
    >> > I
    >> > > > suspect the I am getting a cached page (why?).
    >> > > >
    >> > > > How can I execute a call with a forced refresh and/or how can I
    >> prevent
    >> > > the
    >> > > > called page from being cached?
    >> > > >
    >> > > > --
    >> > > > ------------------------------------
    >> > > > Wayne Wengert
    >> > > > [email]waynewengert.org[/email]
    >> > > >
    >> > > >
    >> > >
    >> > >
    >> >
    >> >
    >>
    >>
    >
    >
    >
    Felix Wu [MSFT] Guest

Similar Threads

  1. Programmatically Refreshing the Page
    By Nathan Sokalski in forum ASP.NET Building Controls
    Replies: 2
    Last Post: August 13th, 02:46 PM
  2. refreshing page...
    By Kory in forum Dreamweaver AppDev
    Replies: 0
    Last Post: March 9th, 05:28 PM
  3. automtically refreshing a page
    By Anton_FA webforumsuser@macromedia.com in forum Macromedia Dreamweaver
    Replies: 2
    Last Post: July 10th, 04:41 AM
  4. Web Page Refreshing...
    By G & H Transportation Co in forum Windows Networking
    Replies: 1
    Last Post: July 5th, 01:30 PM
  5. Refreshing the page
    By Ivo Teel in forum Macromedia Flash
    Replies: 2
    Last Post: July 1st, 12:04 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139