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. Help regarding refreshing a page.

Help regarding refreshing a page.

Scheduled Pinned Locked Moved ASP.NET
questiondatabasehelpannouncement
6 Posts 5 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.
  • A Offline
    A Offline
    anu81
    wrote on last edited by
    #1

    hi all, I want to update the body of my web page say every 10 seconds without having to reload the page i.e. no flickers. I just want any part of the page that has changed e.g. a table connected to a database to show the current data without the users clicking anything i.e. it should be automatic, using a particular time interval like I mentioned. i tried using the setInterval('function1()',10000) and the page gets reloaded.but i want to avoid this.How can i implement the same using AJAX? Thanks in advance.:) Regards Anuradha

    M S 2 Replies Last reply
    0
    • A anu81

      hi all, I want to update the body of my web page say every 10 seconds without having to reload the page i.e. no flickers. I just want any part of the page that has changed e.g. a table connected to a database to show the current data without the users clicking anything i.e. it should be automatic, using a particular time interval like I mentioned. i tried using the setInterval('function1()',10000) and the page gets reloaded.but i want to avoid this.How can i implement the same using AJAX? Thanks in advance.:) Regards Anuradha

      M Offline
      M Offline
      Mark Churchill
      wrote on last edited by
      #2

      If you want to do it using AJAX then grab the framework from ajax.asp.net. Then you just have to drop an updatepanel around what you want to update and a timer to trigger it.

      Mark Churchill Director Dunn & Churchill

      A 1 Reply Last reply
      0
      • A anu81

        hi all, I want to update the body of my web page say every 10 seconds without having to reload the page i.e. no flickers. I just want any part of the page that has changed e.g. a table connected to a database to show the current data without the users clicking anything i.e. it should be automatic, using a particular time interval like I mentioned. i tried using the setInterval('function1()',10000) and the page gets reloaded.but i want to avoid this.How can i implement the same using AJAX? Thanks in advance.:) Regards Anuradha

        S Offline
        S Offline
        S A R I T H
        wrote on last edited by
        #3

        Use atlas framework and use ajax enabled controls like UpdatePanel

        Sarith...

        1 Reply Last reply
        0
        • M Mark Churchill

          If you want to do it using AJAX then grab the framework from ajax.asp.net. Then you just have to drop an updatepanel around what you want to update and a timer to trigger it.

          Mark Churchill Director Dunn & Churchill

          A Offline
          A Offline
          anu81
          wrote on last edited by
          #4

          hi mark, thanks for your reply. I thought using ajax will stop refreshing the page.Can i implement the same without using ajax? if it is possible, can you please help me with some samples? Thanks again :) Regards Anuradha

          M N 2 Replies Last reply
          0
          • A anu81

            hi mark, thanks for your reply. I thought using ajax will stop refreshing the page.Can i implement the same without using ajax? if it is possible, can you please help me with some samples? Thanks again :) Regards Anuradha

            M Offline
            M Offline
            Michael Sync
            wrote on last edited by
            #5

            With ASP.NET Ajax extension, there are two important controls called "Update Panel" and "Timer". 1. Add the UpdatePanel control to your page. 2. Add Timer control (this control from Ajax extension. not windows timer.) 3. In Tick event of timer, do the updating your page. I saw like that one in ASP.NET Forum. Check-out this. http://forums.asp.net/p/1118294/1740340.aspx Hope it helps.

            Thanks and Regards, Michael Sync ( Blog: http://michaelsync.net) If you want to thank me for my help, please vote my message by clicking one of numbers beside "Rate this message". Why vote? Plz Read it here. Thank you. :)

            1 Reply Last reply
            0
            • A anu81

              hi mark, thanks for your reply. I thought using ajax will stop refreshing the page.Can i implement the same without using ajax? if it is possible, can you please help me with some samples? Thanks again :) Regards Anuradha

              N Offline
              N Offline
              N a v a n e e t h
              wrote on last edited by
              #6

              anu81 wrote:

              Can i implement the same without using ajax? if it is possible,

              You can put the items that needs to be refreshed in seperate frame (IFrame) and reload the frame using javascript.


              My Website | Ask smart questions

              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