This is a migrated thread and some comments may be shown as answers.

How to refresh a district in web page every 30 seconds?

1 Answer 100 Views
Ajax
This is a migrated thread and some comments may be shown as answers.
Shengpan Song
Top achievements
Rank 1
Shengpan Song asked on 04 Jun 2010, 04:43 PM
How to refresh a district that shows the last update from DB  in web page every 30 seconds?
thanks , everyone.

1 Answer, 1 is accepted

Sort by
0
Veli
Telerik team
answered on 08 Jun 2010, 09:40 AM
Hi Shengpan,

There are plenty of ways to do this. Here are 2:

1. You can have an ASP UpatePanel control wrapping your updated contents. You put a Timer control inside the update panel and set its interval to 30 seconds. Every time the  timer ticks, the update panel refreshes and you can update the contents inside the update panel from the Timer's server-side Tick event.

2. You can have a RadAjaxManager again with a timer and your updated container. You can create an AJAX setting where the Timer control updates your container. The rest is the same - define an interval and handle the updates in the Timer's Tick event.

All the best,
Veli
the Telerik team

Do you want to have your say when we set our development plans? Do you want to know when a feature you care about is added or when a bug fixed? Explore the Telerik Public Issue Tracking system and vote to affect the priority of the items.
Tags
Ajax
Asked by
Shengpan Song
Top achievements
Rank 1
Answers by
Veli
Telerik team
Share this question
or