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. Ajax Timer control in ASP.Net

Ajax Timer control in ASP.Net

Scheduled Pinned Locked Moved ASP.NET
questioncsharpasp-netdatabase
3 Posts 2 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
    scothykonma
    wrote on last edited by
    #1

    Hi All.. I am just trying with Timer control in my web project. I have to check database at every minute and change the updates in my page. How can I do? Thanks in Advance

    S 1 Reply Last reply
    0
    • S scothykonma

      Hi All.. I am just trying with Timer control in my web project. I have to check database at every minute and change the updates in my page. How can I do? Thanks in Advance

      S Offline
      S Offline
      Spunky Coder
      wrote on last edited by
      #2

      In the OnTick event of the Timer Control add your logic to check the database and do the necessary changes.

      "Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)

      S 1 Reply Last reply
      0
      • S Spunky Coder

        In the OnTick event of the Timer Control add your logic to check the database and do the necessary changes.

        "Don't worry if it doesn't work right. If everything did, you'd be out of a job." (Mosher's Law of Software Engineering)

        S Offline
        S Offline
        scothykonma
        wrote on last edited by
        #3

        Ya... My code is like.. protected void NotificationTimer_Tick(object sender, EventArgs e) { //My code to get data from db } Its working fine...But every 1 minute the page should refreshed so , remaining in the UpdatePanel like grid also loaded once again... whats the problem?????? How to avoid this?

        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