How to refresh gridview data at some specified interval in dotnetnuke 4.x module?

Posted on 2009-12-24
Last Modified: 2012-05-08

  I am new to dotnetnuke. I am developing custom DNN modules using DNN 4.x [ and SQL Server 2005].
  Each module has a gridview in it and I am binding that data from tables dynamically by coding in .vb file.
      Table's data is updating by some background programs.  I used Timer control to bind gridview data
  at specified interval so that when table data updates it should show in gridview.
  It works fine when there is only one module on a DNN page and updates gridview data at specified interval,
  when I add more such module on a page then it's not updating grids properly.
      I need Grids should refresh at some interval and that refresh interval should be configurable.
  How do I solve this   problem in DNN?  Is there any other way to do this?

Question by:madhav_ghatole
    LVL 21

    Expert Comment

    hey Madhav,
    what do you mena by "it's not updating grids properly" is it not updating the grid completey/ are you getting any errors.

    I also assume that you are using the ajax timer with an updatepanel to update the grid periodically.

    Thanks and regards,

    Author Comment

    Hi tovvenki,

    It's not updating grid completely. I am using update panel and AJAX timer.
    I just placed Timer and Grid in an Update panel. In tick of  timer, binding
    data to grid. When there is one module on a DNN page it works fine, but
    when there are multiple such modules then it's not updating it.
         I don't get any error.

    LVL 8

    Expert Comment

    If didn't yet, try to check the event viewer to find some more info about that error.
    Or if you can, try to check if timer event is executed.

    Accepted Solution

    Hi, we have done it by inter module communication in DNN. Where we use only one timer and refresh all other gridview data periodically.

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    How your wiki can always stay up-to-date

    Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
    - Increase transparency
    - Onboard new hires faster
    - Access from mobile/offline

    Today is the age of broadband.  More and more people are going this route determined to experience the web and it’s multitude of services as quickly and painlessly as possible. Coupled with the move to broadband, people are experiencing the web via …
    International Data Corporation (IDC) prognosticates that before the current the year gets over disbursing on IT framework products to be sent in cloud environs will be $37.1B.
    To add imagery to an HTML email signature, you have two options available to you. You can either add a logo/image by embedding it directly into the signature or hosting it externally and linking to it. The vast majority of email clients display l…
    Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

    760 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    11 Experts available now in Live!

    Get 1:1 Help Now