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 Refresh Without Timer

Ajax Refresh Without Timer

Scheduled Pinned Locked Moved ASP.NET
csharpasp-netdatabasesysadminlounge
2 Posts 2 Posters 1 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
    platso_588
    wrote on last edited by
    #1

    Hello, I am Developing a Web-Chat Application using ASP.Net with c# language. For chat window updation I am using AJAX Panel and updation happen for every 1 second as the Timer control Interval given in Timer is 1 Second. Updation code is implemented in Timer_Tick(). I feel is for every frequent time interval updation happens which can cause unnecessary load on the server. Basically for chat application only when send button is clicked updation is needed. I feel AJAX Refresh is not needed when the user is idle i.e when the user doesn't click on send button. My Query is it possible to refresh all the webpages of this particular link opened in different PC's when any user clicks on Send Button. What can i do for similar Implementation. If my query is not clear please feel free to ask questions.

    C 1 Reply Last reply
    0
    • P platso_588

      Hello, I am Developing a Web-Chat Application using ASP.Net with c# language. For chat window updation I am using AJAX Panel and updation happen for every 1 second as the Timer control Interval given in Timer is 1 Second. Updation code is implemented in Timer_Tick(). I feel is for every frequent time interval updation happens which can cause unnecessary load on the server. Basically for chat application only when send button is clicked updation is needed. I feel AJAX Refresh is not needed when the user is idle i.e when the user doesn't click on send button. My Query is it possible to refresh all the webpages of this particular link opened in different PC's when any user clicks on Send Button. What can i do for similar Implementation. If my query is not clear please feel free to ask questions.

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

      platso_588 wrote:

      Basically for chat application only when send button is clicked updation is needed. I feel AJAX Refresh is not needed when the user is idle i.e when the user doesn't click on send button.

      So if you chat to me, I won't see it until I click a button ? Sounds like crap to me

      platso_588 wrote:

      My Query is it possible to refresh all the webpages of this particular link opened in different PC's when any user clicks on Send Button

      No. There's no way this can work, that's why you're using a timer.

      Christian Graus Driven to the arms of OSX by Vista. Read my blog to find out how I've worked around bugs in Microsoft tools and frameworks.

      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