1. Advertising
    y u no do it?

    Advertising (learn more)

    Advertise virtually anything here, with CPM banner ads, CPM email ads and CPC contextual links. You can target relevant areas of the site and show ads based on geographical location of the user if you wish.

    Starts at just $1 per CPM or $0.10 per CPC.

Automatic refreshing of data fetched from SQL Server in a ASP.net page

Discussion in 'C#' started by Razorz, Oct 24, 2010.

  1. #1
    I want to make a section on my asp.net webpage where I will be fetching data from a SQL Server 2005 database and it would need to be refreshed every minute without the whole page refreshing. Only that section would need to refresh. It's something like stock prices as they keep updating per minute in my database. What control should I use and how should I implement it? Can anyone please help me out?
     
    Razorz, Oct 24, 2010 IP
  2. AstarothSolutions

    AstarothSolutions Peon

    Messages:
    2,680
    Likes Received:
    77
    Best Answers:
    0
    Trophy Points:
    0
    #2
    ScriptManager, UpdatePanel & Timer
     
    AstarothSolutions, Oct 25, 2010 IP
  3. Bigcats82

    Bigcats82 Greenhorn

    Messages:
    13
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    11
    #3
    You'll need to use AJAX. There is a timer control.
     
    Bigcats82, Oct 26, 2010 IP
  4. bibinsmk

    bibinsmk Active Member

    Messages:
    205
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    53
    #4
    You can do this by using AJAX. Place the control you want to update evry minute in an Update panel. Use the timer control to to invoke the code every minute.
     
    bibinsmk, Oct 27, 2010 IP
  5. teamaguilar

    teamaguilar Peon

    Messages:
    197
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #5
    You can very well do this with AJAX
     
    teamaguilar, Nov 21, 2010 IP