Click here to Skip to main content
15,877,574 members
Home / Discussions / Web Development
   

Web Development

 
AnswerRe: HELP: How I can refresh a picture without jumping to another page when the selection is changed? Pin
Marc Firth26-Jul-09 22:36
Marc Firth26-Jul-09 22:36 
GeneralRe: HELP: How I can refresh a picture without jumping to another page when the selection is changed? Pin
Curious 200927-Jul-09 14:47
Curious 200927-Jul-09 14:47 
GeneralRe: HELP: How I can refresh a picture without jumping to another page when the selection is changed? Pin
Marc Firth27-Jul-09 21:42
Marc Firth27-Jul-09 21:42 
GeneralRe: HELP: How I can refresh a picture without jumping to another page when the selection is changed? Pin
THAQCD28-Jul-09 2:43
THAQCD28-Jul-09 2:43 
GeneralRe: HELP: How I can refresh a picture without jumping to another page when the selection is changed? Pin
Marc Firth28-Jul-09 2:48
Marc Firth28-Jul-09 2:48 
GeneralRe: HELP: How I can refresh a picture without jumping to another page when the selection is changed? Pin
THAQCD28-Jul-09 6:18
THAQCD28-Jul-09 6:18 
QuestionSilverlight webservice Pin
mikla52125-Jul-09 4:32
mikla52125-Jul-09 4:32 
AnswerRe: Silverlight webservice Pin
Jeremy Likness26-Jul-09 3:27
professionalJeremy Likness26-Jul-09 3:27 
We have a similar issue where we have a large block of data that displays on a dashboard. It can be accessed by 1..N clients and involves some complex queries and therefore we don't want to be re-running it each time the request is made.

The solution is to cache on the server side.

There are several ways to tackle this. I would start by abstracting your service with an interface (should be doing this already) and then having the interface also receive a cache interface, ICache.

You can make it simple, for example, perhaps you construct it with a factory like this:

ICache cache = CacheFactory.RetrieveCache(TimeSpan lifespan);

This gives you flexibility for how long it is cached.

Then, you might use the ASP.NET Web Cache - take a look here for some exhaustive examples/solutions:

Exploring Caching in ASP.NET[^]

Another option is to use the Singleton pattern and create a static class with a "lastcached" date and the parsed file.

Basically, you expose a method "getparsedfile" and the method checks the lastcached. If it was cached less than you interval, it will simply return the cached object, otherwise it locks the object, updates the date and then re-parses the file.

Hope that makes sense!

Jeremy Likness
Latest Article: Hierarchal Data Templates in Silverlight
Blog:
http://csharperimage.jeremylikness.com/

QuestionYou are not authorized to view this page Pin
koolprasad200324-Jul-09 20:33
professionalkoolprasad200324-Jul-09 20:33 
AnswerRe: You are not authorized to view this page Pin
Adam Maras25-Jul-09 6:43
Adam Maras25-Jul-09 6:43 
AnswerRe: You are not authorized to view this page Pin
Robin_Roy30-Jul-09 17:24
Robin_Roy30-Jul-09 17:24 
Question@ Blocks in VS Pin
Todd Smith24-Jul-09 14:14
Todd Smith24-Jul-09 14:14 
QuestionHistorical data from nse Pin
udch24-Jul-09 8:49
udch24-Jul-09 8:49 
AnswerRe: Historical data from nse Pin
Christian Graus24-Jul-09 11:42
protectorChristian Graus24-Jul-09 11:42 
QuestionPage overlay sizing problem (CSS) Pin
Bryant May24-Jul-09 0:49
Bryant May24-Jul-09 0:49 
AnswerRe: Page overlay sizing problem (CSS) Pin
Bryant May24-Jul-09 2:17
Bryant May24-Jul-09 2:17 
QuestionProblem with AJAX controls after upgrading framework Pin
pavya_Cool23-Jul-09 21:50
pavya_Cool23-Jul-09 21:50 
QuestionCould someone tell me why there is a "<" at the top of the page? Pin
bfis10813723-Jul-09 20:52
bfis10813723-Jul-09 20:52 
AnswerRe: Could someone tell me why there is a "<" at the top of the page? Pin
Abhishek Sur23-Jul-09 21:53
professionalAbhishek Sur23-Jul-09 21:53 
GeneralRe: Could someone tell me why there is a "<" at the top of the page? Pin
bfis10813723-Jul-09 23:27
bfis10813723-Jul-09 23:27 
AnswerRe: Could someone tell me why there is a "<" at the top of the page? Pin
DoctorMick24-Jul-09 0:02
DoctorMick24-Jul-09 0:02 
Questionauthentication framework for jsp Pin
sanuji23-Jul-09 18:15
sanuji23-Jul-09 18:15 
QuestionHelp with formatting my website properly Pin
T. Cody23-Jul-09 15:04
T. Cody23-Jul-09 15:04 
AnswerRe: Help with formatting my website properly Pin
Christian Graus23-Jul-09 17:40
protectorChristian Graus23-Jul-09 17:40 
Questionxml application Pin
ashwika4923-Jul-09 1:18
ashwika4923-Jul-09 1:18 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Praise Praise    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.