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
CODE PROJECT For Those Who Code
  • Home
  • Articles
  • FAQ
Community
  1. Home
  2. Web Development
  3. ASP.NET
  4. How we can frequently Update data in ASP.NET page?

How we can frequently Update data in ASP.NET page?

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesysadminhelp
6 Posts 4 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.
  • P Offline
    P Offline
    piyush_patel1111
    wrote on last edited by
    #1

    I have made an application in asp.net and retrieve data to dropdownlist. but my application is on network so, one user can update database which is bounded dropdownlistbox. So i want to update database without clicking any button or using timer control. How i can do this. Someone help me. e.g. Like in sharekhan site where prices of shares are frequently changing.

    C E 2 Replies Last reply
    0
    • P piyush_patel1111

      I have made an application in asp.net and retrieve data to dropdownlist. but my application is on network so, one user can update database which is bounded dropdownlistbox. So i want to update database without clicking any button or using timer control. How i can do this. Someone help me. e.g. Like in sharekhan site where prices of shares are frequently changing.

      C Offline
      C Offline
      Christian Graus
      wrote on last edited by
      #2

      piyush_patel1111 wrote:

      without clicking any button or using timer control

      If you don't want to respond to an event, or create an event, such as with a timer, then your only other option is prayer. I am sure the site you're speaking of, is using a timer and AJAX to make it's changes

      Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

      1 Reply Last reply
      0
      • P piyush_patel1111

        I have made an application in asp.net and retrieve data to dropdownlist. but my application is on network so, one user can update database which is bounded dropdownlistbox. So i want to update database without clicking any button or using timer control. How i can do this. Someone help me. e.g. Like in sharekhan site where prices of shares are frequently changing.

        E Offline
        E Offline
        eyeseetee
        wrote on last edited by
        #3

        AJAX is the only way of doing this. there is an example of how a timer control would work on the ajax toolkit page. Basically it shows the time with the seconds updating live. This means that the page is making a partial postback every second. Using this would be the only way of having a live updated system.

        C M 2 Replies Last reply
        0
        • E eyeseetee

          AJAX is the only way of doing this. there is an example of how a timer control would work on the ajax toolkit page. Basically it shows the time with the seconds updating live. This means that the page is making a partial postback every second. Using this would be the only way of having a live updated system.

          C Offline
          C Offline
          Christian Graus
          wrote on last edited by
          #4

          but he said he doesn't want to use a timer.....

          Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

          E 1 Reply Last reply
          0
          • C Christian Graus

            but he said he doesn't want to use a timer.....

            Christian Graus No longer a Microsoft MVP, but still happy to answer your questions.

            E Offline
            E Offline
            eyeseetee
            wrote on last edited by
            #5

            Christian Graus wrote:

            but he said he doesn't want to use a timer.....

            Yes I can read. :^) I mentioned it because I was trying to explain in my arguement that this is the only real valid way of doing it. Sometimes people say they cant use a certain method so that they can get other possible solutions. In this case he will just have to use a method he doesnt really want to use.

            1 Reply Last reply
            0
            • E eyeseetee

              AJAX is the only way of doing this. there is an example of how a timer control would work on the ajax toolkit page. Basically it shows the time with the seconds updating live. This means that the page is making a partial postback every second. Using this would be the only way of having a live updated system.

              M Offline
              M Offline
              Manas Bhardwaj
              wrote on last edited by
              #6

              .netman wrote:

              AJAX is the only way of doing this.

              No. There are other options too, but they are quite complex to implement. Have you ever heard of Comet[^], Push Model etc.

              Please remember to rate helpful or unhelpful answers, it lets us and people reading the forums know if our answers are any good.

              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