Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > ASP .Net > -Re: Re: Serious cache problem - Page_Load get never get called !!!

Thread Tools

-Re: Re: Serious cache problem - Page_Load get never get called !!!

Ryan Park
Posts: n/a
Hi, thanks for your attention. But unfortunately, this does not work

I can't believe that there is no previous posting about this.

Sigh.....I'll checking out if I can use cookies. This make me to write
same functional code twice.


----Below is your previous posting...I'm attaching this for other's
understanding. Google gets weired error when I tried to attach to the
previous posting. Error goes : "Unable to retrieve message Removed)"----------

Appending the header doesn't necessarily tell the browser not to cache
page. For that, your best bet is to include the appropriate meta tag:
HTTP-EQUIV="PRAGMA" CONTENT="NO-CACHE">. Using the meta tag may help
more browsers than just the response header alone.

You might also try using a Response.Flush() right after you send the
header. I've seen that help in some instances.

Hope this helps,
Mark Fitzpatrick
Microsoft MVP - FrontPage

"Ryan Park" <(E-Mail Removed)> wrote in message
news:(E-Mail Removed) om...
> Hi,
> I got a page that stores session variable.
> This page gets input parameter by QueryString and this variable stored
> into session variable.
> page works in normal navigation scenario.
> Then I bookmarked this url to my favorites and call this url by
> clicking favorites link.
> When in this situation, at initial time Page_Load() of my gets
> called but after first time, page never get called by clicking
> favorites link.
> I guess maybe IE caches the link and read it when user clicks from
> favorite link.
> I've tried below codes only to fail to call Page_Load(). All of them
> failed.
> Response.Expires = 0;
> Response.Cache.SetNoStore();
> Response.AppendHeader("Pragma", "no-cache");
> Navigating my pages by favorites link is very possible user
> scenario.
> This is unavoidable.
> How can I always ensure IE to read URL from Web Server not from cache
> when user clicks favorites link?
> Any suggestion will be appreciated. TIA.
> Regards,
> Ryan

Reply With Quote

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Serious cache problem - Page_Load get never get called !!! Ryan Park ASP .Net 2 01-03-2005 05:52 PM
Page_Load and Page_Init get called twice, sometimes! Dot net work ASP .Net 6 11-24-2004 08:04 PM
in VB.NET Page_load of a base class called after the derived class Page_load ? z. f. ASP .Net 0 10-19-2004 12:01 PM
Why does page_load fire twice when inheriting from a common overridable Page_Load bminder ASP .Net 1 02-23-2004 08:54 PM
Re: a serious question for a non-serious cause... henry DVD Video 1 11-08-2003 04:38 PM