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. Listening for database updates in asp .net

Listening for database updates in asp .net

Scheduled Pinned Locked Moved ASP.NET
csharpphpdatabasemysqlquestion
4 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.
  • H Offline
    H Offline
    hardboy111
    wrote on last edited by
    #1

    Hi All, I have a mysql database. I have a web portal in php where users can update personal information which is added and stored in the database. Im building another web app in asp .net which will feed from the same database. Is there anyway of 'listening' for when updates occur in the database efficently from my asp .net web app? Im not sure what the best approach is. Any suggestions much appreciated. Thanks Mike

    A Y 2 Replies Last reply
    0
    • H hardboy111

      Hi All, I have a mysql database. I have a web portal in php where users can update personal information which is added and stored in the database. Im building another web app in asp .net which will feed from the same database. Is there anyway of 'listening' for when updates occur in the database efficently from my asp .net web app? Im not sure what the best approach is. Any suggestions much appreciated. Thanks Mike

      A Offline
      A Offline
      Abhijit Jana
      wrote on last edited by
      #2

      hardboy111 wrote:

      Is there anyway of 'listening' for when updates occur in the database efficently from my asp .net web app?

      As both the site are sharing the same database then why you are trying to listing? If there is any update in the database from PHP sites, when user refresh or reload the page in ASP.NET he will get the updated data. Any specific reason to do that?

      cheers, Abhijit CodeProject MVP

      1 Reply Last reply
      0
      • H hardboy111

        Hi All, I have a mysql database. I have a web portal in php where users can update personal information which is added and stored in the database. Im building another web app in asp .net which will feed from the same database. Is there anyway of 'listening' for when updates occur in the database efficently from my asp .net web app? Im not sure what the best approach is. Any suggestions much appreciated. Thanks Mike

        Y Offline
        Y Offline
        Yusuf
        wrote on last edited by
        #3

        hardboy111 wrote:

        Is there anyway of 'listening' for when updates

        what do you mean by 'listening'. The very nature of web application does not allow you to listen to events on the server, or does it. One way to try is, since they are sharing the same database, in your asp.net you may want to use AJAX to check for updated periodically. This will be small and quick bursts of status checks. When you detect a change, hen you refresh your asp.net pages to fetch updated data.

        Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

        H 1 Reply Last reply
        0
        • Y Yusuf

          hardboy111 wrote:

          Is there anyway of 'listening' for when updates

          what do you mean by 'listening'. The very nature of web application does not allow you to listen to events on the server, or does it. One way to try is, since they are sharing the same database, in your asp.net you may want to use AJAX to check for updated periodically. This will be small and quick bursts of status checks. When you detect a change, hen you refresh your asp.net pages to fetch updated data.

          Yusuf Oh didn't you notice, analogous to square roots, they recently introduced rectangular, circular, and diamond roots to determine the size of the corresponding shapes when given the area. Luc Pattyn[^]

          H Offline
          H Offline
          hardboy111
          wrote on last edited by
          #4

          im using a COMET approach. Hence if a update occurs I want to be able to push the update down to the web browser without any request from the client. Polling isnt what I want to do.

          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