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. Request-Response problem

Request-Response problem

Scheduled Pinned Locked Moved ASP.NET
questionsysadminhelp
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.
  • N Offline
    N Offline
    ndkit
    wrote on last edited by
    #1

    I'm using AJAX to write Web application, there have two client (client1, client2) and server. Now i use XmlHttpRequest to send request to Server from Client1, after that, i want server send the response to Client2. But if i use Response.write(something here), Server always send to Client1, not Client2. How can i do??? Thanks!

    G 1 Reply Last reply
    0
    • N ndkit

      I'm using AJAX to write Web application, there have two client (client1, client2) and server. Now i use XmlHttpRequest to send request to Server from Client1, after that, i want server send the response to Client2. But if i use Response.write(something here), Server always send to Client1, not Client2. How can i do??? Thanks!

      G Offline
      G Offline
      Guffa
      wrote on last edited by
      #2

      You can't do that. The HTTP protocol simply doesn't work that way. You have to send a request from the client to be able to send a response back from the server. --- b { font-weight: normal; }

      N 1 Reply Last reply
      0
      • G Guffa

        You can't do that. The HTTP protocol simply doesn't work that way. You have to send a request from the client to be able to send a response back from the server. --- b { font-weight: normal; }

        N Offline
        N Offline
        ndkit
        wrote on last edited by
        #3

        So are there any way to do that? example some game online ?

        C 1 Reply Last reply
        0
        • N ndkit

          So are there any way to do that? example some game online ?

          C Offline
          C Offline
          CWIZO
          wrote on last edited by
          #4

          Just do a request every N seconds that will ask the server if it has anything for the client. Of course you will have to write the code at the server side that will be able to do that. But if you will only have two clients then you should defenitly write a windows application! -------------------------------------------------------- My development blog Q:What does the derived class in C# tell to it's parent? A:All your base are belong to us!

          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