Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. Web Development
  3. ASP.NET
  4. live update

live update

Scheduled Pinned Locked Moved ASP.NET
regexquestiondiscussionannouncement
3 Posts 3 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • S Offline
    S Offline
    Subin Mavunkal
    wrote on last edited by
    #1

    Hi Guys , Whats the best way to implement a live update on an aspx page.Like commentary/score update of a live cricket match ?.Any good thoughts ? Please share :) With Warm regards :)

    K R 2 Replies Last reply
    0
    • S Subin Mavunkal

      Hi Guys , Whats the best way to implement a live update on an aspx page.Like commentary/score update of a live cricket match ?.Any good thoughts ? Please share :) With Warm regards :)

      K Offline
      K Offline
      Keith Barrow
      wrote on last edited by
      #2

      Depends on how live you want it to be. For most applications you can get away with polling the server from the client using javascript in one way or another. Jquery has a neat ajax/[^] method that will take away some of the client side pain. You can use this to get part of a web page. If you want something a little more live-like you could consider long-polling, where you request the data immediately and the server only responds when the information has changed, or the poll interval "times out". Once the poll is done, the client re-polls immediately and the process repeats. There is a discussion of the topic here[^]. In the article he talks about a technology called SignalR, which will help you with the long polling stuff.

      Sort of a cross between Lawrence of Arabia and Dilbert.[^]
      -Or-
      A Dead ringer for Kate Winslett[^]

      1 Reply Last reply
      0
      • S Subin Mavunkal

        Hi Guys , Whats the best way to implement a live update on an aspx page.Like commentary/score update of a live cricket match ?.Any good thoughts ? Please share :) With Warm regards :)

        R Offline
        R Offline
        Rahul Rajat Singh
        wrote on last edited by
        #3

        The answer will hugely depend on the source of data that is being served. If you have some source of data that you need to put on your webpage after a regular interval then it can be easily done using AJAX. in fact, you can do it using simple ASP.NET updatepanel and timer control only. Here is a small article that shows how to use the timer to keep the page updating after some interval. IN this demo application, only server time is being shown live to the user after certain time interval. you can simply show your data instead of that. AJAX for Beginners (Part 1) - Understanding ASP.NET AJAX Server Controls[^]

        Twenty years from now you will be more disappointed by the things that you didn't do than by the ones you did do. So throw off the bowlines. Sail away from the safe harbor. Catch the trade winds in your sails. Explore, Dream. Discover.

        1 Reply Last reply
        0
        Reply
        • Reply as topic
        Log in to reply
        • Oldest to Newest
        • Newest to Oldest
        • Most Votes


        • Login

        • Don't have an account? Register

        • Login or register to search.
        • First post
          Last post
        0
        • Categories
        • Recent
        • Tags
        • Popular
        • World
        • Users
        • Groups