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

2 posts, 0 answers
  1. Shengpan Song
    Shengpan Song avatar
    11 posts
    Member since:
    Jan 2010

    Posted 04 Jun 2010 Link to this post

    How to refresh a district that shows the last update from DB  in web page every 30 seconds?
    thanks , everyone.
  2. Veli
    Veli avatar
    2002 posts

    Posted 08 Jun 2010 Link to this post

    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,
    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.
Back to Top