Ask a Question related to ASP, Design and Development.

  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]wayne@wengert.org[/email]


    Wayne Wengert Guest

  2. Similar Questions and Discussions

    1. refreshing page...
      I have page that is opened in a small window and after a user submits the form on that page I want the window to close and then refresh the page...
    2. Refreshing Page through CodeBehind --- Is it possible?
      Temp wrote: I presume that you mean some app running on the server? There isn't a way to do this server side once the page has been dispatched...
    3. automtically refreshing a page
      Greetings I found this in the DWMX help but unfortunately it doesn't actually say how to do it: Setting Refresh properties Use the Refresh...
    4. Web Page Refreshing...
      I was just wondering... Our company must use a web site for order information from one of our customers. They place an order on the web site and...
    5. Refreshing the page
      I was wondering if there is any way through for instance getURL(), to refresh the current page? (Like the page the SWF is currently included on.)...
  3. #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" <wayne@wengert.org> wrote in message
    news:u3m29f%23dDHA.1888@TK2MSFTNGP12.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]wayne@wengert.org[/email]
    >
    >

    Bite My Bubbles Guest

  4. #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" <bmb@mybubbles.com> wrote in message
    news:OxQpKo%23dDHA.2300@TK2MSFTNGP10.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" <wayne@wengert.org> wrote in message
    > news:u3m29f%23dDHA.1888@TK2MSFTNGP12.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]wayne@wengert.org[/email]
    > >
    > >
    >
    >

    Wayne Wengert Guest

  5. #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" <wayne@wengert.org> wrote in message
    news:%23EXAH1%23dDHA.2432@TK2MSFTNGP11.phx.gbl...
    > I don't have root access to IIS. I just buy Windows Web service from an
    ISP
    >
    > Wayne
    >
    > "Bite My Bubbles" <bmb@mybubbles.com> wrote in message
    > news:OxQpKo%23dDHA.2300@TK2MSFTNGP10.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" <wayne@wengert.org> wrote in message
    > > news:u3m29f%23dDHA.1888@TK2MSFTNGP12.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]wayne@wengert.org[/email]
    > > >
    > > >
    > >
    > >
    >
    >

    Bite My Bubbles Guest

  6. #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" <bmb@mybubbles.com> wrote in message
    news:unNeK8%23dDHA.2436@TK2MSFTNGP11.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" <wayne@wengert.org> wrote in message
    > news:%23EXAH1%23dDHA.2432@TK2MSFTNGP11.phx.gbl...
    > > I don't have root access to IIS. I just buy Windows Web service from an
    > ISP
    > >
    > > Wayne
    > >
    > > "Bite My Bubbles" <bmb@mybubbles.com> wrote in message
    > > news:OxQpKo%23dDHA.2300@TK2MSFTNGP10.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" <wayne@wengert.org> wrote in message
    > > > news:u3m29f%23dDHA.1888@TK2MSFTNGP12.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]wayne@wengert.org[/email]
    > > > >
    > > > >
    > > >
    > > >
    > >
    > >
    >
    >

    Wayne Wengert Guest

  7. #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" <wayne@wengert.org>
    >References: <u3m29f#dDHA.1888@TK2MSFTNGP12.phx.gbl>
    <OxQpKo#dDHA.2300@TK2MSFTNGP10.phx.gbl>
    <#EXAH1#dDHA.2432@TK2MSFTNGP11.phx.gbl>
    <unNeK8#dDHA.2436@TK2MSFTNGP11.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.2304@TK2MSFTNGP11.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" <bmb@mybubbles.com> wrote in message
    >news:unNeK8%23dDHA.2436@TK2MSFTNGP11.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" <wayne@wengert.org> wrote in message
    >> news:%23EXAH1%23dDHA.2432@TK2MSFTNGP11.phx.gbl...
    >> > I don't have root access to IIS. I just buy Windows Web service from an
    >> ISP
    >> >
    >> > Wayne
    >> >
    >> > "Bite My Bubbles" <bmb@mybubbles.com> wrote in message
    >> > news:OxQpKo%23dDHA.2300@TK2MSFTNGP10.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" <wayne@wengert.org> wrote in message
    >> > > news:u3m29f%23dDHA.1888@TK2MSFTNGP12.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]wayne@wengert.org[/email]
    >> > > >
    >> > > >
    >> > >
    >> > >
    >> >
    >> >
    >>
    >>
    >
    >
    >
    Felix Wu [MSFT] Guest

Posting Permissions

  • You may not post new threads
  • You may 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