Click here to Skip to main content
15,895,809 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
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

1 solution

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[^]
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900