I have a page-template class that creates a div tag and
then creates a literal control inside the div. That way,
it appears on every page that inherits from it.
Is there a way to cache these controls? They only exist
in a single method in my the codebehind .cs, nowhere in
any .aspx or server control code.
Thanks.
MSFT - 11 Dec 2003 08:36 GMT
Hello,
You may take a look at following article to see if it can answer your
question:
Adding Items to the Cache
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconaddingitemstocache.asp
Additionally, you also can consider puting the div on a user control and
cache the whole user control. For information about ASP.NET cache:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/cpguide/htm
l/cpconaspcachingfeatures.asp?frame=true
Luke
Microsoft Online Support

Signature
Get Secure! www.microsoft.com/security
(This posting is provided "AS IS", with no warranties, and confers no
rights.)