471,350 Members | 1,782 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

Master Page Cache

I have a question regarding page caching in a C# Web App that I'm
developing.

I have used page caching successfully in VS2003 at the page level - and
it also works the same in VS2005.

I have noticed that I can't cache master pages. I can cache individual
pages as before, however it appears that the server is building the
master pages for "non cached" pages each time. (I have proved this by
putting a date.time.now display on the master page and it is always
updated with each display).

Is there a way to cache the master page content so it can be used
repeatedly without having to be rebuild each time.

I would definately appreciate any help you can give me!

Thanks, Fred
Jan 23 '06 #1
1 6417
Fred,
I really doubt you could do this and you probably would not even want to.

The concept of a Master Page is that it holds common elements, menu, etc.
that are used by each page that targets the .master file as its master page.

In other words, there is no "master page" to cache - because each page that
is requested using that Master Page contains all the elements of the master
page in it.
Hope that makes sense.

Peter
-
Co-founder, Eggheadcafe.com developer portal:
http://www.eggheadcafe.com
UnBlog:
http://petesbloggerama.blogspot.com


"Fred Nelson" wrote:
I have a question regarding page caching in a C# Web App that I'm
developing.

I have used page caching successfully in VS2003 at the page level - and
it also works the same in VS2005.

I have noticed that I can't cache master pages. I can cache individual
pages as before, however it appears that the server is building the
master pages for "non cached" pages each time. (I have proved this by
putting a date.time.now display on the master page and it is always
updated with each display).

Is there a way to cache the master page content so it can be used
repeatedly without having to be rebuild each time.

I would definately appreciate any help you can give me!

Thanks, Fred

Jan 23 '06 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by Dunc | last post: by
5 posts views Thread by Vincent A. | last post: by
6 posts views Thread by =?Utf-8?B?SmF5IFBvbmR5?= | last post: by
5 posts views Thread by =?Utf-8?B?bXVzb3NkZXY=?= | last post: by
reply views Thread by XIAOLAOHU | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.