ASP.Net, IE 5 & 5.01, Caching Problem

Ask a Question related to ASP.NET General, Design and Development.

  1. #1

    Default Re: ASP.Net, IE 5 & 5.01, Caching Problem

    Thanks Mark, I think that will solve my problem. A related question then
    would be, how can I write out these meta tags in code. All of my pages in
    my web app inherit from a custom class I wrote that inherits from Page, so I
    would like to add these meta tags in my custom class in code, so that I
    don't have to set them up in the html of all of my dozens of children
    classes.

    TIA.

    -
    ==============
    Joe Reazor
    Gorbel Inc.
    email: joereaATgorbelDOTcom
    "Mark MacRae" <nospam@nospam.com> wrote in message
    news:up6hv#HTDHA.2852@tk2msftngp13.phx.gbl...
    > As a rule, I always put the following at the top of my ASPX pages (in the
    > <head></head> secion of course)
    >
    > <meta name="prevent_caching1" HTTP-EQUIV="Pragma" content="no-cache">
    > <meta name="prevent_caching2" HTTP-EQUIV="Cache-Control"
    CONTENT="no-cache">
    > <meta name="prevent_caching3" HTTP-EQUIV="Expires" CONTENT="0">
    >
    > HTH,
    > mark
    >
    >
    >
    > "Joe Reazor" <joenospam@belgor.com> wrote in message
    > news:ev6XrzHTDHA.2020@TK2MSFTNGP11.phx.gbl...
    > > We've deployed a brand new web app built with ASP.Net and are
    experiencing
    > a
    > > strange case with our users accessing it using IE 5.0 or IE5.01. If the
    > go
    > > to Tools - Internet Options - Settings and have their "Check for newer
    > > versions of stored pages" setting set to "Automatically", then the first
    > > time they go to a page it looks right, but the next time they go to the
    > > page, if the page should be different because its dynamic, they don't
    get
    > > the new page, they get the same one they saw before. The page should be
    > > different even though the entire url is the same. This does not happen
    at
    > > all in IE 6 or even IE 5.5. I'm guessing its an issue with these old
    > > versions of IE, but thought maybe .Net has something to do with it if it
    > is
    > > detected the browser's capabilities. Anyone have any thoughts or ideas,
    > > short of having the users upgrade their browsers or forcing them to
    change
    > > the setting to "Every Visist to the Page" which also works fine.
    > >
    > > TIA
    > >
    > > ==============
    > > Joe Reazor
    > > Gorbel Inc.
    > > email: joereaATgorbelDOTcom
    > >
    > >
    >
    >

    Joe Reazor Guest

  2. Similar Questions and Discussions

    1. Caching problem in asp.net
      I have a swf file embedded in an asp.net master page. The swf displays a menu based on data obtained from an xml file. I am having problems with...
    2. Problem with CF Forms caching code changes
      Hi all, I've been having a problem with code changes in CF MX7 not being reflected when I test my programs. I have a very small form that...
    3. fragment caching problem
      I have a custom control that generates client scripts and uses viewstate This control is placed in a user control that is placed in my application...
    4. possible caching problem
      I am trying to implement forms authentication in my asp.net app. I set the loginurl setting to be "login.aspx" at first and then I needed to change...
    5. Page Caching Problem
      I am having a problem with web forms I have uploaded to my hosting site not running the most recent version. The .aspx file I have FTPed to my...
  3. #2

    Default Re: ASP.Net, IE 5 & 5.01, Caching Problem

    From a previous post. I haven't tried it, but it might be worth a look:

    <HEAD id="myHead" runat="server"></HEAD> suffices.

    In your code behind you then declare :

    protected System.Web.UI.HtmlControls.HtmlContainerControl myHead

    And you are free to access myHead properties. You are probably going to be
    interested in "InnerHtml" property the most.


    "Joe Reazor" <joenospam@belgor.com> wrote in message
    news:%23fPSHuITDHA.560@TK2MSFTNGP10.phx.gbl...
    > Thanks Mark, I think that will solve my problem. A related question then
    > would be, how can I write out these meta tags in code. All of my pages in
    > my web app inherit from a custom class I wrote that inherits from Page, so
    I
    > would like to add these meta tags in my custom class in code, so that I
    > don't have to set them up in the html of all of my dozens of children
    > classes.
    >
    > TIA.
    >
    > -
    > ==============
    > Joe Reazor
    > Gorbel Inc.
    > email: joereaATgorbelDOTcom
    > "Mark MacRae" <nospam@nospam.com> wrote in message
    > news:up6hv#HTDHA.2852@tk2msftngp13.phx.gbl...
    > > As a rule, I always put the following at the top of my ASPX pages (in
    the
    > > <head></head> secion of course)
    > >
    > > <meta name="prevent_caching1" HTTP-EQUIV="Pragma" content="no-cache">
    > > <meta name="prevent_caching2" HTTP-EQUIV="Cache-Control"
    > CONTENT="no-cache">
    > > <meta name="prevent_caching3" HTTP-EQUIV="Expires" CONTENT="0">
    > >
    > > HTH,
    > > mark
    > >
    > >
    > >
    > > "Joe Reazor" <joenospam@belgor.com> wrote in message
    > > news:ev6XrzHTDHA.2020@TK2MSFTNGP11.phx.gbl...
    > > > We've deployed a brand new web app built with ASP.Net and are
    > experiencing
    > > a
    > > > strange case with our users accessing it using IE 5.0 or IE5.01. If
    the
    > > go
    > > > to Tools - Internet Options - Settings and have their "Check for newer
    > > > versions of stored pages" setting set to "Automatically", then the
    first
    > > > time they go to a page it looks right, but the next time they go to
    the
    > > > page, if the page should be different because its dynamic, they don't
    > get
    > > > the new page, they get the same one they saw before. The page should
    be
    > > > different even though the entire url is the same. This does not
    happen
    > at
    > > > all in IE 6 or even IE 5.5. I'm guessing its an issue with these old
    > > > versions of IE, but thought maybe .Net has something to do with it if
    it
    > > is
    > > > detected the browser's capabilities. Anyone have any thoughts or
    ideas,
    > > > short of having the users upgrade their browsers or forcing them to
    > change
    > > > the setting to "Every Visist to the Page" which also works fine.
    > > >
    > > > TIA
    > > >
    > > > ==============
    > > > Joe Reazor
    > > > Gorbel Inc.
    > > > email: joereaATgorbelDOTcom
    > > >
    > > >
    > >
    > >
    >
    >

    Joe Iano Guest

  4. #3

    Default Re: ASP.Net, IE 5 & 5.01, Caching Problem

    Hello Joe,

    Please also refer to [url]http://www.codeproject.com/aspnet/page_templates.asp?print=true[/url] to see how to add customized
    header field from a inherited based page.

    Hope it helps.

    Best regards,
    Yanhong Huang
    Microsoft Online Partner Support

    Get Secure! - [url]www.microsoft.com/security[/url]
    This posting is provided "AS IS" with no warranties, and confers no rights.

    --------------------
    !From: "Joe Reazor" <joenospam@belgor.com>
    !References: <ev6XrzHTDHA.2020@TK2MSFTNGP11.phx.gbl> <up6hv#HTDHA.2852@tk2msftngp13.phx.gbl>
    <#fPSHuITDHA.560@TK2MSFTNGP10.phx.gbl> <uGkvNEJTDHA.1664@TK2MSFTNGP11.phx.gbl>
    !Subject: Re: ASP.Net, IE 5 & 5.01, Caching Problem
    !Date: Thu, 17 Jul 2003 15:15:46 -0400
    !Lines: 114
    !X-Priority: 3
    !X-MSMail-Priority: Normal
    !X-Newsreader: Microsoft Outlook Express 6.00.2800.1106
    !X-MIMEOLE: Produced By Microsoft MimeOLE V6.00.2800.1106
    !Message-ID: <u70n$eJTDHA.1992@TK2MSFTNGP12.phx.gbl>
    !Newsgroups: microsoft.public.dotnet.framework.aspnet
    !NNTP-Posting-Host: smtp.gorbel.com 216.42.134.6
    !Path: cpmsftngxa06.phx.gbl!TK2MSFTNGP08.phx.gbl!TK2MSFTN GP12.phx.gbl
    !Xref: cpmsftngxa06.phx.gbl microsoft.public.dotnet.framework.aspnet:160050
    !X-Tomcat-NG: microsoft.public.dotnet.framework.aspnet
    !
    !Actaully, all of my pages inherit from my custom class MyPage instead of
    !Page. In my class MyPage, I have all kinds of custom stuff that all of my
    !child pages get access to on top of the normal Page stuff. I was hoping
    !there would be a way for me to put some code in my OnLoad method of my
    !MyPage class that would write out these headers. I was looking at
    !Response.AppendHeader, but that didn't seem to do it. At least it didn't
    !write out the header in the generated HTML, but I have to imagine there is a
    !way to do it.
    !
    !
    !==============
    !Joe Reazor
    !Gorbel Inc.
    !email: joereaATgorbelDOTcom
    !
    !
    !"Mark MacRae" <nospam@nospam.com> wrote in message
    !news:uGkvNEJTDHA.1664@TK2MSFTNGP11.phx.gbl...
    !> Joe,
    !> Maybe I'm low tech, but all my ASPX pages are basically cloned from a
    !> template and that's in my template. You could use a server-side includes,
    !or
    !> some inline function to put it in at the top of each page, but as far as I
    !> can think, you'll have to be editing all your pages no matter which way
    !you
    !> go.
    !>
    !> "Joe Reazor" <joenospam@belgor.com> wrote in message
    !> news:%23fPSHuITDHA.560@TK2MSFTNGP10.phx.gbl...
    !> > Thanks Mark, I think that will solve my problem. A related question
    !then
    !> > would be, how can I write out these meta tags in code. All of my pages
    !in
    !> > my web app inherit from a custom class I wrote that inherits from Page,
    !so
    !> I
    !> > would like to add these meta tags in my custom class in code, so that I
    !> > don't have to set them up in the html of all of my dozens of children
    !> > classes.
    !> >
    !> > TIA.
    !> >
    !> > -
    !> > ==============
    !> > Joe Reazor
    !> > Gorbel Inc.
    !> > email: joereaATgorbelDOTcom
    !> > "Mark MacRae" <nospam@nospam.com> wrote in message
    !> > news:up6hv#HTDHA.2852@tk2msftngp13.phx.gbl...
    !> > > As a rule, I always put the following at the top of my ASPX pages (in
    !> the
    !> > > <head></head> secion of course)
    !> > >
    !> > > <meta name="prevent_caching1" HTTP-EQUIV="Pragma" content="no-cache">
    !> > > <meta name="prevent_caching2" HTTP-EQUIV="Cache-Control"
    !> > CONTENT="no-cache">
    !> > > <meta name="prevent_caching3" HTTP-EQUIV="Expires" CONTENT="0">
    !> > >
    !> > > HTH,
    !> > > mark
    !> > >
    !> > >
    !> > >
    !> > > "Joe Reazor" <joenospam@belgor.com> wrote in message
    !> > > news:ev6XrzHTDHA.2020@TK2MSFTNGP11.phx.gbl...
    !> > > > We've deployed a brand new web app built with ASP.Net and are
    !> > experiencing
    !> > > a
    !> > > > strange case with our users accessing it using IE 5.0 or IE5.01. If
    !> the
    !> > > go
    !> > > > to Tools - Internet Options - Settings and have their "Check for
    !newer
    !> > > > versions of stored pages" setting set to "Automatically", then the
    !> first
    !> > > > time they go to a page it looks right, but the next time they go to
    !> the
    !> > > > page, if the page should be different because its dynamic, they
    !don't
    !> > get
    !> > > > the new page, they get the same one they saw before. The page
    !should
    !> be
    !> > > > different even though the entire url is the same. This does not
    !> happen
    !> > at
    !> > > > all in IE 6 or even IE 5.5. I'm guessing its an issue with these
    !old
    !> > > > versions of IE, but thought maybe .Net has something to do with it
    !if
    !> it
    !> > > is
    !> > > > detected the browser's capabilities. Anyone have any thoughts or
    !> ideas,
    !> > > > short of having the users upgrade their browsers or forcing them to
    !> > change
    !> > > > the setting to "Every Visist to the Page" which also works fine.
    !> > > >
    !> > > > TIA
    !> > > >
    !> > > > ==============
    !> > > > Joe Reazor
    !> > > > Gorbel Inc.
    !> > > > email: joereaATgorbelDOTcom
    !> > > >
    !> > > >
    !> > >
    !> > >
    !> >
    !> >
    !>
    !>
    !
    !
    !


    Yan-Hong Huang[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