Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / ASP.NET / Caching / December 2003

Tip: Looking for answers? Try searching our database.

Cache Constantly Used Controls?

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
localhost - 11 Dec 2003 03:21 GMT
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.)


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.