Hi,
No, your Page_Load will be cached first when the first user accessess the
page, and then any subsequent request upto 600 seconds will be served from
the cache.
For static objects, store them in the cache object in the initial Page_Load
i.e., in !IsPostBack to avoid loading it for a second time.
Regards
Joyjit
"Mike" <Mi**@discussions.microsoft.com> wrote in message
news:48**********************************@microsof t.com...
Hi,
If I turn on the caching for a page with the following directive:
<%@ OutputCache Duration="600" VaryByParam="None" %>
will the Page_Load event always fire? If I have some static data that are
retrieved from the database and would like to avoid retrieving it every
time the page is accessed, could I use the above directive and include the
following statement in the Page_Load event?
if (!this.Page.IsPostBack)
Or is there a better way for doing this?
Thanks.
Mike