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. .net remoting and object invocation

.net remoting and object invocation

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

    Hi all, I am a beginer in .net and i hav to implement a chat program [ web application, not standalone] and i have implemented public chat, but in private chat if a user send a mesage to another, i wanna pop up a window in the second user's computer [ like all other chat servers]. How can i invoke a remote object from server [ to pop up a window in client system from web server ]? please advice. Thanks to all. Ali

    X 1 Reply Last reply
    0
    • A alimohammed

      Hi all, I am a beginer in .net and i hav to implement a chat program [ web application, not standalone] and i have implemented public chat, but in private chat if a user send a mesage to another, i wanna pop up a window in the second user's computer [ like all other chat servers]. How can i invoke a remote object from server [ to pop up a window in client system from web server ]? please advice. Thanks to all. Ali

      X Offline
      X Offline
      xibeifeijian
      wrote on last edited by
      #2

      Server send messages to client?In C/S system there maybe some solutions use socket. But in web applications there is no way to achieve this. For a substitute,you can use ajax to post some request periodly for check is there are new messages.If ajax request find new message,then get it and show it in a pop up window.:^)

      ▒〓〓〓〓〓▒▒〓▒〓▒▒ ▒〓▒▒▒▒▒〓〓〓〓〓▒ ▒〓▒▒▒▒▒▒〓▒〓▒▒ ▒〓▒▒▒▒▒〓〓〓〓〓▒ ▒〓〓〓〓〓▒▒〓▒〓▒▒

      A 1 Reply Last reply
      0
      • X xibeifeijian

        Server send messages to client?In C/S system there maybe some solutions use socket. But in web applications there is no way to achieve this. For a substitute,you can use ajax to post some request periodly for check is there are new messages.If ajax request find new message,then get it and show it in a pop up window.:^)

        ▒〓〓〓〓〓▒▒〓▒〓▒▒ ▒〓▒▒▒▒▒〓〓〓〓〓▒ ▒〓▒▒▒▒▒▒〓▒〓▒▒ ▒〓▒▒▒▒▒〓〓〓〓〓▒ ▒〓〓〓〓〓▒▒〓▒〓▒▒

        A Offline
        A Offline
        alimohammed
        wrote on last edited by
        #3

        yes thats what i want, but i cannot inject a javasript to the page to opo up a window if there is a message, i get an exception [which is shown in an alert window ] and i searched for the solution and what i got is to avoid this response.write part from ajax related part. any way to pop up a window? it can be easly done if there is no ajax code.

        X 1 Reply Last reply
        0
        • A alimohammed

          yes thats what i want, but i cannot inject a javasript to the page to opo up a window if there is a message, i get an exception [which is shown in an alert window ] and i searched for the solution and what i got is to avoid this response.write part from ajax related part. any way to pop up a window? it can be easly done if there is no ajax code.

          X Offline
          X Offline
          xibeifeijian
          wrote on last edited by
          #4

          Use window.setInterval to watch if there is a new message.I mean the ajax is you use a Msxml2.XmlHTTP ActiveX object to post some request and get response from it.All of these operations are in javascript.;P;P;P Don't use Ajax.dll or other dll please:-D!

          :^):^):^):^):^):^):^):^):^):^):^):^) :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::^):^):^):^)▒▒〓▒〓▒▒ :^):rose::^):^):^):^)▒〓〓〓〓〓▒ :^):rose::rose::rose::rose::rose:▒▒〓▒〓▒▒ :^):^):^):^):^):^):^):^):^):^):^):^)

          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