Click here to Skip to main content
Rate this: bad
good
Please Sign up or sign in to vote.
See more: C# ASP.NET
Hi All,
 
I have widgets in my dashboard page.I want automatically refresh the widgets to hit the database and fetch the records automatically
 
from there for particular time intervals, without page reloading and without using any kind of ajax update panel.Because i can't use ajax
 
kind of thing in my website.Can any one help me with good ideas?.
 
Thanks in advance.
Posted 7-Oct-12 19:36pm

1 solution

Rate this: bad
good
Please Sign up or sign in to vote.

Solution 1

I hope that you are allowed to use Cache in your application.
 
To achieve your requirement you can go for using Substitution Control.
The Substitution control offers a simplified solution to partial page caching for pages where the majority of the content is cached. You can output-cache the entire page, and then use Substitution controls to specify the parts of the page that are exempt from caching. Cached regions execute only once and are read from the cache until the cache entry expires or is purged. Dynamic regions execute every time that the page is requested.
 
See below examples:
aspnet-substitution-control-example-how[^]
substitution-control-asp.net-3.5-single-article-157.aspx[^]
  Permalink  

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
0 OriginalGriff 365
1 Nirav Prabtani 252
2 Richard Deeming 215
3 CHill60 170
4 _Amy 145
0 OriginalGriff 8,104
1 Sergey Alexandrovich Kryukov 7,045
2 Maciej Los 4,039
3 Peter Leow 3,738
4 CHill60 2,912


Advertise | Privacy | Mobile
Web01 | 2.8.140721.1 | Last Updated 8 Oct 2012
Copyright © CodeProject, 1999-2014
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100