arrowHome arrow Forum Wednesday, 27 August 2008  
Main Menu
Home
Media Gallery
J2EE Blog
Forum
News
Downloads
News Feeds
FAQ's
Links
System Status
Contact Us
About iDoumo
Latest Posts
Find suspicious files abukta
Automate Filesystem Dump abukta
Add route to server abukta
Benefits of Logical Volume Management abukta
Performance Costs of using LVM abukta
Login Form
Username

Password

Remember me
Forgotten your password?
No account yet? Create one

Newsflash

Workday Devil Mountain Run draws 1,800+ runners, walkers


A pack of lean and muscular runners of many ages bolted from the starting line in downtown Danville this morning just as the sun broke through the fog.

Behind the competitive runners followed those of varying levels of proficiency, some running with strollers, others walking dogs, holding hands, or listening to music.

Threatened with cancellation just weeks ago for lack of a title sponsor, today's Workday Devil Mountain Run attracted about as many people as last year's run and likely raised even more money for Children's Hospital Oakland, organizers said.

  iDoumo Projects
  Programming
        .NET 
              Caching - Output/Data/Fragment

Quick Jump To:

.NET Threads List - Search Forum
Moderated by: abukta Subscribe to this Thread
  Caching - Output/Data/Fragment
  20 Jan 2006 15:07 # 1 
   abukta
 super admin
 
 profile
 
Join Date: 29 Mar 2005 21:03
Posts:
 
 Caching - Output/Data/Fragment
ASP.NET has some powerful caching options. If used intelligently, caching can provide a huge performace improvement. In one of my projects, I had to work with low-memory, old webserver and the only way I was able to increase the performance of the web site is by implementing "output" and "data" caching.

In ASP.NET there are 3 types of caching:
Output caching - it stores a copy of the final HTML page that is sent to the client. When the next request comes in, the stored HTML output is sent automatically.

Example: Insert this line on top of the .aspx file -

In this example the the duration attribute instructs ASP.NET to store the cache files for 300 seconds.

Data caching is carried out manually in the code and it is the most flexible type of caching. You need to strore important pieces od data that are time-consuming to recontruct such as a DataSet.

Example: We store a dataset in cache uisng the Cache.Insert method.

'--- Cache DataSet for 10 min
Cache.Insert("Products", DS.Tables("NOTESDB").DefaultView, Nothing, DateTime.Now.AddMinutes(10), TimeSpan.Zero)

'--- Fill in the repeater with the cached DS
MyRepeater.DataSource = Cache("Products")

Fragment caching - sometimes you find you can't cache the the entire page, but still you would like to cache a portion that is expensive to create and it does not vary.
 


<< Start < Prev 1 Next > End >>
Results 1 - 1 of 1



Help iDoumo

Help support "iDoumo" and free software by donating now!

Donate Once Monthly

Currency

Amount

Currency

Amount

Latest Events
There are no upcoming events currently scheduled.
View Full Calendar
Project Calendar
August 2008 September 2008
Su Mo Tu We Th Fr Sa
Week 31 1 2
Week 32 3 4 5 6 7 8 9
Week 33 10 11 12 13 14 15 16
Week 34 17 18 19 20 21 22 23
Week 35 24 25 26 27 28 29 30
Week 36 31
Media Gallery
Last update:
27 Sep, 11:53
Workday

random:

PeopleSoft
top of page

iDoumo Projects. All rights reserved.