Take the 2-minute tour ×
SharePoint Stack Exchange is a question and answer site for SharePoint enthusiasts. It's 100% free, no registration required.

Another is this possible question: I have 4 webparts that read in a csv file, process it and create a IEnumberable that is used for graphing. Right now the webparts each read in and process the file. I was wondering if there is a way i could save off the result with a time stamp and then have the webparts use this (provided the timestamp doesn't indicate that it is old) stored version. I know a web service might be a way to solve this but that would be out of scope....so ideally looking for something simple where you could store it then pull it out/cast. Any ideas welcome :)

TIA

share|improve this question
add comment

1 Answer 1

up vote 1 down vote accepted

This is a straight forward caching question, so I'd use HttpRuntime.Cache in the first instance.

Here's a scenario from Tobias Zimmergren: http://zimmergren.net/technical/web-part-caching-a-simple-approach

share|improve this answer
    
Easier than what i had just come up with which was to create a connectable web part that would process the CSV and serve up the IEnumerable on request. Many thanks! –  MikeC Jul 20 '12 at 20:56
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.