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 Website asynchronous calling of other IP device

Asp Website asynchronous calling of other IP device

Scheduled Pinned Locked Moved Web Development
csharpasp-netlinux
2 Posts 1 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.
  • R Offline
    R Offline
    Reanalyse
    wrote on last edited by
    #1

    I am developing a webserver application in ASP.Net 2 using C#. It places images of various remote controls on the browser screen in an imagebutton, and when the remote is clicked identifies the button clicked in a ImageButton1_Click(object sender, ImageClickEventArgs e) routine. That works fine, but where I am having trouble is that, depending on the button pressed, I need to pass command strings to an IR Trans device (simulating the remote) from my application without leaving the webpage. The IR Trans device has it's own webserver so what I am trying to do is asynchronously "shell" a text string to that device. Looking at documentation there are IAysnchronousHandlers that may be part of the solution. Can anyone suggest the best approach. Many Thanks

    R 1 Reply Last reply
    0
    • R Reanalyse

      I am developing a webserver application in ASP.Net 2 using C#. It places images of various remote controls on the browser screen in an imagebutton, and when the remote is clicked identifies the button clicked in a ImageButton1_Click(object sender, ImageClickEventArgs e) routine. That works fine, but where I am having trouble is that, depending on the button pressed, I need to pass command strings to an IR Trans device (simulating the remote) from my application without leaving the webpage. The IR Trans device has it's own webserver so what I am trying to do is asynchronously "shell" a text string to that device. Looking at documentation there are IAysnchronousHandlers that may be part of the solution. Can anyone suggest the best approach. Many Thanks

      R Offline
      R Offline
      Reanalyse
      wrote on last edited by
      #2

      Getting close I suspect the code is like WebRequest req; WebResponse resp; Uri myuri= new Uri(@"http://192.168.10.10/"); req = HttpWebRequest.Create(myuri); resp = req.GetResponse(); Using the System.Net Namespace

      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