Ask a Question related to ASP.NET General, Design and Development.
-
Joe Reazor #1
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...CONTENT="no-cache">> 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"experiencing> <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 areget> a> go> > strange case with our users accessing it using IE 5.0 or IE5.01. If the> > 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'tat> > 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 happenchange> is> > 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> > detected the browser's capabilities. Anyone have any thoughts or ideas,
> > short of having the users upgrade their browsers or forcing them to>> > the setting to "Every Visist to the Page" which also works fine.
> >
> > TIA
> >
> > ==============
> > Joe Reazor
> > Gorbel Inc.
> > email: joereaATgorbelDOTcom
> >
> >
>
Joe Reazor Guest
-
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... -
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... -
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... -
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... -
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... -
Joe Iano #2
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...I> 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, sothe> 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 (inthe> CONTENT="no-cache">> > <head></head> secion of course)
> >
> > <meta name="prevent_caching1" HTTP-EQUIV="Pragma" content="no-cache">
> > <meta name="prevent_caching2" HTTP-EQUIV="Cache-Control"> experiencing> > <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> > a> > > strange case with our users accessing it using IE 5.0 or IE5.01. Iffirst> > go> > > to Tools - Internet Options - Settings and have their "Check for newer
> > > versions of stored pages" setting set to "Automatically", then thethe> > > time they go to a page it looks right, but the next time they go tobe> get> > > page, if the page should be different because its dynamic, they don't> > > the new page, they get the same one they saw before. The page shouldhappen> > > different even though the entire url is the same. This does notit> 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 ifideas,> > is> > > detected the browser's capabilities. Anyone have any thoughts or> change> > > short of having the users upgrade their browsers or forcing them to>> >> > > the setting to "Every Visist to the Page" which also works fine.
> > >
> > > TIA
> > >
> > > ==============
> > > Joe Reazor
> > > Gorbel Inc.
> > > email: joereaATgorbelDOTcom
> > >
> > >
> >
>
Joe Iano Guest
-
Yan-Hong Huang[MSFT] #3
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



Reply With Quote

